class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: E = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

l.t = g
l.z = m
l.w = m
i.o = d
i.w = d
i.r = d
i.x = j
i.s = j
g.p = l
j.v = d
m.u = j
m.o = j
m.r = n
m.w = e
m.p = d
n.p = l
c.t = e
c.z = m
c.w = m
d.o = i
d.w = i
d.r = i
d.x = j
d.s = j
k.p = l
e.p = l
assert j.v.w.r.o.txt == "
class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: E = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

l.t = g
l.z = m
l.w = m
i.o = d
i.w = d
i.r = d
i.x = j
i.s = j
g.p = l
j.v = d
m.u = j
m.o = j
m.r = n
m.w = e
m.p = d
n.p = l
c.t = e
c.z = m
c.w = m
d.o = i
d.w = i
d.r = i
d.x = j
d.s = j
k.p = l
e.p = l
assert j.v.w.r.o.txt == "i"