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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: F = None
        self.t: F = None
        self.u: H = None
        self.r: B = None
        self.p: E = None
        self.v: I = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: F = None
        self.p: I = None
        self.t: A = None
        self.x: G = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: D = None
        self.o: H = None
        self.s: F = None
        self.p: A = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: E = None
        self.u: G = None
        self.v: G = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: H = None
        self.o: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: F = None
        self.t: F = None
        self.u: H = None
        self.r: B = None
        self.p: E = None
        self.v: I = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: F = None
        self.p: I = None
        self.t: A = None
        self.x: G = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: D = None
        self.o: H = None
        self.s: F = None
        self.p: A = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: E = None
        self.u: G = None
        self.v: G = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: H = None
        self.o: D = None
        self.txt = txt

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

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

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