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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.q: C = None
        self.z: B = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.q: C = None
        self.z: B = None
        self.v: D = None
        self.txt = txt

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

j.s = n
l.t = b
l.u = b
l.y = m
h.s = m
h.v = b
h.w = n
b.s = n
f.t = e
f.o = n
f.q = h
f.z = m
f.v = b
c.t = e
c.o = n
c.q = h
c.z = a
c.v = b
a.t = b
a.u = b
a.y = l
n.s = l
n.v = b
n.w = h
e.t = c
e.o = h
e.q = n
e.z = l
e.v = b
m.t = b
m.u = b
m.y = l
assert n.w.s.u.s.v.s.v.s.txt == "n"