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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: E = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

l.u = j
l.p = k
l.t = b
e.w = k
e.x = k
e.s = j
e.v = h
k.z = l
k.o = l
k.y = h
k.x = c
k.p = c
h.u = b
h.z = c
h.o = j
h.p = f
h.y = f
j.s = b
a.w = k
a.x = k
a.s = j
a.v = b
f.u = j
f.p = c
f.t = b
b.u = h
b.z = k
b.o = j
b.p = f
b.y = l
i.w = k
i.s = j
i.x = c
i.v = h
c.z = f
c.o = f
c.y = b
c.x = k
c.p = k
assert h.u.z.y.txt == "
class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.p: C = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: E = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

l.u = j
l.p = k
l.t = b
e.w = k
e.x = k
e.s = j
e.v = h
k.z = l
k.o = l
k.y = h
k.x = c
k.p = c
h.u = b
h.z = c
h.o = j
h.p = f
h.y = f
j.s = b
a.w = k
a.x = k
a.s = j
a.v = b
f.u = j
f.p = c
f.t = b
b.u = h
b.z = k
b.o = j
b.p = f
b.y = l
i.w = k
i.s = j
i.x = c
i.v = h
c.z = f
c.o = f
c.y = b
c.x = k
c.p = k
assert h.u.z.y.txt == "h"