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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.p: C = None
        self.txt = txt

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

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