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

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

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

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

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

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

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

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

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

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

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

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

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