class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: D = None
        self.x: F = None
        self.y: D = None
        self.t: G = None
        self.u: C = None
        self.o: E = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: G = None
        self.s: B = None
        self.z: F = None
        self.x: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: H = None
        self.x: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: F = None
        self.s: F = None
        self.w: G = None
        self.v: E = None
        self.x: G = None
        self.txt = txt

h = A("h")
i = B("i")
a = C("a")
d = D("d")
b = E("b")
l = F("l")
c = G("c")
j = H("j")
e = C("e")
k = G("k")

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: G = None
        self.s: B = None
        self.z: F = None
        self.x: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: H = None
        self.x: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: F = None
        self.s: F = None
        self.w: G = None
        self.v: E = None
        self.x: G = None
        self.txt = txt

h = A("h")
i = B("i")
a = C("a")
d = D("d")
b = E("b")
l = F("l")
c = G("c")
j = H("j")
e = C("e")
k = G("k")

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