class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: C = None
        self.v: A = None
        self.r: J = None
        self.y: F = None
        self.o: H = None
        self.s: G = None
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: H = None
        self.t: J = None
        self.x: A = None
        self.z: I = None
        self.w: A = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: B = None
        self.x: I = None
        self.z: H = None
        self.r: D = None
        self.v: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: C = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: H = None
        self.t: F = None
        self.z: B = None
        self.r: C = None
        self.w: E = None
        self.p: A = None
        self.s: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: G = None
        self.t: C = None
        self.txt = txt

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

e.z = g
m.p = c
m.t = h
m.v = e
m.r = b
m.y = i
m.o = l
m.u = l
m.s = g
h.s = e
h.x = e
h.w = e
h.o = l
h.t = b
h.z = d
h.r = d
k.z = g
k.v = c
c.r = b
c.t = b
c.v = b
c.w = h
c.y = g
c.u = l
c.p = l
c.o = k
c.z = d
i.w = b
i.s = m
i.q = m
i.z = e
i.t = g
i.y = l
i.p = l
i.r = k
i.x = h
g.o = k
g.r = k
g.p = m
g.x = d
g.v = d
g.z = l
l.p = m
l.o = h
l.w = h
d.q = c
d.w = c
d.y = l
d.t = i
d.z = m
d.r = h
d.p = e
d.s = k
b.y = k
b.z = g
b.t = h
assert b.t.t.t.t.z.z.o.txt == "
class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: C = None
        self.v: A = None
        self.r: J = None
        self.y: F = None
        self.o: H = None
        self.s: G = None
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: H = None
        self.t: J = None
        self.x: A = None
        self.z: I = None
        self.w: A = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: B = None
        self.x: I = None
        self.z: H = None
        self.r: D = None
        self.v: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: C = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: H = None
        self.t: F = None
        self.z: B = None
        self.r: C = None
        self.w: E = None
        self.p: A = None
        self.s: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: G = None
        self.t: C = None
        self.txt = txt

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

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