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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: D = None
        self.o: B = None
        self.q: C = None
        self.r: B = None
        self.txt = txt

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

b.r = e
b.q = j
b.w = k
b.y = k
b.s = k
e.v = b
e.q = j
j.w = e
j.z = m
h.t = d
h.s = d
h.u = d
h.o = j
h.w = f
m.v = h
m.p = h
m.o = e
m.r = e
m.q = k
k.w = e
k.z = m
d.t = h
d.s = h
d.u = h
d.o = j
d.w = b
f.r = e
f.q = j
f.w = j
f.s = j
f.y = k
l.r = e
l.q = k
l.w = k
l.s = k
l.y = j
a.r = e
a.q = k
a.w = k
a.y = j
a.s = j
assert h.o.z.p.o.z.q.z.v.t.o.txt == "
class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: C = None
        self.w: C = None
        self.y: C = None
        self.s: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: D = None
        self.o: B = None
        self.q: C = None
        self.r: B = None
        self.txt = txt

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

b.r = e
b.q = j
b.w = k
b.y = k
b.s = k
e.v = b
e.q = j
j.w = e
j.z = m
h.t = d
h.s = d
h.u = d
h.o = j
h.w = f
m.v = h
m.p = h
m.o = e
m.r = e
m.q = k
k.w = e
k.z = m
d.t = h
d.s = h
d.u = h
d.o = j
d.w = b
f.r = e
f.q = j
f.w = j
f.s = j
f.y = k
l.r = e
l.q = k
l.w = k
l.s = k
l.y = j
a.r = e
a.q = k
a.w = k
a.y = j
a.s = j
assert h.o.z.p.o.z.q.z.v.t.o.txt == "j"