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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: C = None
        self.t: C = None
        self.txt = txt

i = A("i")
f = B("f")
m = C("m")
h = D("h")
n = E("n")
a = D("a")
e = B("e")
l = A("l")

i.t = n
i.r = n
i.s = m
i.v = f
f.o = n
f.u = e
f.z = e
m.s = f
m.q = e
h.q = m
h.u = f
h.w = f
h.x = a
n.y = m
n.u = m
n.t = m
a.q = m
a.u = e
a.w = e
a.x = h
e.o = n
e.u = f
e.z = f
l.t = n
l.r = n
l.s = m
l.v = f
assert l.s.q.o.txt == "
class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: C = None
        self.r: E = None
        self.v: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: C = None
        self.t: C = None
        self.txt = txt

i = A("i")
f = B("f")
m = C("m")
h = D("h")
n = E("n")
a = D("a")
e = B("e")
l = A("l")

i.t = n
i.r = n
i.s = m
i.v = f
f.o = n
f.u = e
f.z = e
m.s = f
m.q = e
h.q = m
h.u = f
h.w = f
h.x = a
n.y = m
n.u = m
n.t = m
a.q = m
a.u = e
a.w = e
a.x = h
e.o = n
e.u = f
e.z = f
l.t = n
l.r = n
l.s = m
l.v = f
assert l.s.q.o.txt == "n"