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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: B = None
        self.txt = txt

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

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

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

l.o = h
l.t = c
l.s = f
l.v = g
a.r = h
a.z = h
a.u = n
e.o = b
e.u = a
b.s = f
b.t = g
b.z = l
b.x = h
b.v = n
h.r = b
h.s = a
f.o = h
f.t = c
f.s = l
f.v = g
c.o = g
c.u = a
j.o = g
j.u = a
n.r = h
n.z = h
n.u = a
g.s = l
g.z = l
g.t = b
g.x = h
g.v = n
assert j.u.u.z.txt == "h"