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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: D = None
        self.t: D = None
        self.r: E = None
        self.y: D = None
        self.txt = txt

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

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

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

n = A("n")
c = B("c")
b = C("b")
g = D("g")
a = E("a")
e = B("e")
j = D("j")
f = E("f")
k = D("k")
l = C("l")

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: D = None
        self.t: D = None
        self.r: E = None
        self.y: D = None
        self.txt = txt

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

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

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

n = A("n")
c = B("c")
b = C("b")
g = D("g")
a = E("a")
e = B("e")
j = D("j")
f = E("f")
k = D("k")
l = C("l")

n.w = f
n.z = c
n.t = e
c.o = k
c.u = j
c.y = j
c.t = g
c.r = f
b.u = l
b.p = l
g.q = n
g.t = n
g.o = j
g.y = l
a.s = k
a.u = n
a.o = e
a.q = l
e.o = j
e.t = j
e.y = j
e.u = g
e.r = f
j.q = n
j.t = n
j.o = k
j.y = l
f.s = j
f.u = n
f.o = e
f.q = l
k.q = n
k.t = n
k.o = j
k.y = l
l.u = b
l.p = b
assert b.p.u.u.u.u.u.u.txt == "l"