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

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

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

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

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

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

l.q = f
l.y = e
l.u = e
l.s = n
l.z = j
c.s = n
e.u = c
e.o = i
e.p = l
i.q = f
i.v = f
i.y = l
f.t = i
f.s = j
f.x = g
f.o = g
n.s = c
j.q = f
j.y = e
j.u = e
j.s = c
j.z = l
g.t = i
g.s = j
g.x = f
g.o = f
assert l.z.u.u.s.s.s.s.s.txt == "
class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: C = None
        self.s: B = None
        self.u: C = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

l.q = f
l.y = e
l.u = e
l.s = n
l.z = j
c.s = n
e.u = c
e.o = i
e.p = l
i.q = f
i.v = f
i.y = l
f.t = i
f.s = j
f.x = g
f.o = g
n.s = c
j.q = f
j.y = e
j.u = e
j.s = c
j.z = l
g.t = i
g.s = j
g.x = f
g.o = f
assert l.z.u.u.s.s.s.s.s.txt == "n"