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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: C = None
        self.q: C = None
        self.txt = txt

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

i = A("i")
l = B("l")
m = C("m")
c = D("c")
g = E("g")
k = A("k")
j = D("j")
a = E("a")
h = C("h")

i.u = a
i.o = c
i.r = j
i.t = j
l.t = i
m.q = j
c.x = h
c.t = m
c.q = m
g.q = m
g.r = a
g.v = l
g.u = l
g.s = c
k.u = g
k.o = j
k.r = j
k.t = j
j.x = m
j.t = m
j.q = h
a.q = m
a.r = g
a.v = l
a.u = l
a.s = c
h.q = j
assert i.u.s.x.q.x.q.txt == "
class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.o: D = None
        self.r: D = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: C = None
        self.q: C = None
        self.txt = txt

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

i = A("i")
l = B("l")
m = C("m")
c = D("c")
g = E("g")
k = A("k")
j = D("j")
a = E("a")
h = C("h")

i.u = a
i.o = c
i.r = j
i.t = j
l.t = i
m.q = j
c.x = h
c.t = m
c.q = m
g.q = m
g.r = a
g.v = l
g.u = l
g.s = c
k.u = g
k.o = j
k.r = j
k.t = j
j.x = m
j.t = m
j.q = h
a.q = m
a.r = g
a.v = l
a.u = l
a.s = c
h.q = j
assert i.u.s.x.q.x.q.txt == "j"