class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: B = None
        self.t: B = None
        self.p: A = None
        self.q: C = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: A = None
        self.r: G = None
        self.u: A = None
        self.x: F = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: D = None
        self.u: G = None
        self.o: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: B = None
        self.t: B = None
        self.p: A = None
        self.q: C = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: A = None
        self.r: G = None
        self.u: A = None
        self.x: F = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: D = None
        self.u: G = None
        self.o: D = None
        self.txt = txt

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

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