class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: E = None
        self.o: E = None
        self.v: D = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: E = None
        self.z: D = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

k = A("k")
f = B("f")
a = C("a")
c = D("c")
i = E("i")
j = D("j")
d = B("d")
m = A("m")
l = B("l")
e = B("e")

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: E = None
        self.z: D = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

k = A("k")
f = B("f")
a = C("a")
c = D("c")
i = E("i")
j = D("j")
d = B("d")
m = A("m")
l = B("l")
e = B("e")

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