class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: E = None
        self.u: E = None
        self.p: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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