class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: C = None
        self.o: E = None
        self.v: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: C = None
        self.r: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: C = None
        self.r: A = None
        self.s: A = None
        self.txt = txt

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

i.y = n
i.z = e
i.o = b
i.v = g
l.u = i
l.q = i
l.s = h
e.p = i
e.y = i
e.r = i
e.o = k
k.v = h
b.z = i
b.r = i
b.s = i
b.t = e
d.v = h
n.z = i
n.r = i
n.s = i
n.t = e
m.u = i
m.q = i
m.s = e
g.v = h
h.p = i
h.y = i
h.r = i
h.o = g
assert d.v.r.y.z.v.v.o.v.txt == "h"