class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: D = None
        self.w: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: B = None
        self.s: D = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: E = None
        self.w: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: B = None
        self.q: B = None
        self.z: B = None
        self.v: B = None
        self.x: F = None
        self.y: B = None
        self.u: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: B = None
        self.s: D = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: E = None
        self.w: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: B = None
        self.q: B = None
        self.z: B = None
        self.v: B = None
        self.x: F = None
        self.y: B = None
        self.u: E = None
        self.txt = txt

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

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