class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: C = None
        self.q: D = None
        self.w: C = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: G = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: D = None
        self.p: H = None
        self.t: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: G = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: D = None
        self.p: H = None
        self.t: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

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

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