class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: J = None
        self.t: I = None
        self.w: I = None
        self.v: E = None
        self.o: E = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: E = None
        self.u: I = None
        self.r: H = None
        self.z: E = None
        self.y: C = None
        self.t: J = None
        self.o: D = None
        self.p: A = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: J = None
        self.x: D = None
        self.o: E = None
        self.t: G = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: G = None
        self.x: H = None
        self.t: G = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: D = None
        self.x: F = None
        self.w: B = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: D = None
        self.s: J = None
        self.u: J = None
        self.v: B = None
        self.z: A = None
        self.w: B = None
        self.y: H = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.r: J = None
        self.v: J = None
        self.t: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: D = None
        self.w: E = None
        self.z: I = None
        self.o: I = None
        self.v: I = None
        self.u: G = None
        self.s: C = None
        self.t: B = None
        self.p: I = None
        self.txt = txt

l = A("l")
m = B("m")
g = C("g")
f = D("f")
c = E("c")
e = F("e")
k = G("k")
i = H("i")
d = I("d")
j = J("j")

l.z = e
l.s = j
l.t = d
l.w = d
l.v = c
l.o = c
l.x = m
m.x = f
m.o = f
m.q = c
m.z = c
m.u = d
m.r = i
m.y = g
m.t = j
m.p = l
m.w = k
g.p = i
g.z = j
g.x = f
g.o = c
g.t = k
g.s = l
f.u = g
f.p = k
f.t = k
f.x = i
f.w = e
c.s = j
c.p = f
c.x = e
c.w = m
c.v = i
e.p = j
e.s = j
e.u = j
e.t = f
e.v = m
e.w = m
e.z = l
e.y = i
e.o = i
k.p = f
k.u = l
k.r = j
k.v = j
k.t = m
i.z = e
i.s = d
d.x = l
d.w = m
j.q = g
j.s = g
j.y = f
j.w = c
j.z = d
j.o = d
j.v = d
j.p = d
j.u = k
j.t = m
assert g.x.w.t.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: J = None
        self.t: I = None
        self.w: I = None
        self.v: E = None
        self.o: E = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: E = None
        self.u: I = None
        self.r: H = None
        self.z: E = None
        self.y: C = None
        self.t: J = None
        self.o: D = None
        self.p: A = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.z: J = None
        self.x: D = None
        self.o: E = None
        self.t: G = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: G = None
        self.x: H = None
        self.t: G = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: D = None
        self.x: F = None
        self.w: B = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: D = None
        self.s: J = None
        self.u: J = None
        self.v: B = None
        self.z: A = None
        self.w: B = None
        self.y: H = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.r: J = None
        self.v: J = None
        self.t: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: D = None
        self.w: E = None
        self.z: I = None
        self.o: I = None
        self.v: I = None
        self.u: G = None
        self.s: C = None
        self.t: B = None
        self.p: I = None
        self.txt = txt

l = A("l")
m = B("m")
g = C("g")
f = D("f")
c = E("c")
e = F("e")
k = G("k")
i = H("i")
d = I("d")
j = J("j")

l.z = e
l.s = j
l.t = d
l.w = d
l.v = c
l.o = c
l.x = m
m.x = f
m.o = f
m.q = c
m.z = c
m.u = d
m.r = i
m.y = g
m.t = j
m.p = l
m.w = k
g.p = i
g.z = j
g.x = f
g.o = c
g.t = k
g.s = l
f.u = g
f.p = k
f.t = k
f.x = i
f.w = e
c.s = j
c.p = f
c.x = e
c.w = m
c.v = i
e.p = j
e.s = j
e.u = j
e.t = f
e.v = m
e.w = m
e.z = l
e.y = i
e.o = i
k.p = f
k.u = l
k.r = j
k.v = j
k.t = m
i.z = e
i.s = d
d.x = l
d.w = m
j.q = g
j.s = g
j.y = f
j.w = c
j.z = d
j.o = d
j.v = d
j.p = d
j.u = k
j.t = m
assert g.x.w.t.w.t.txt == "f"