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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: E = None
        self.x: D = None
        self.q: D = None
        self.t: E = None
        self.txt = txt

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

e = A("e")
h = B("h")
j = C("j")
k = D("k")
f = E("f")
n = E("n")
b = E("b")
c = D("c")
i = E("i")
d = D("d")

e.z = f
e.v = i
e.s = d
h.q = j
h.w = c
h.o = d
j.v = e
j.o = c
k.z = h
k.w = n
k.x = d
k.q = d
k.t = b
f.u = e
f.w = e
f.y = c
f.z = h
n.u = e
n.w = e
n.y = d
n.z = h
b.u = e
b.w = e
b.y = c
b.z = h
c.z = h
c.w = n
c.x = k
c.q = d
c.t = f
i.u = e
i.w = e
i.y = d
i.z = h
d.z = h
d.w = n
d.x = k
d.q = k
d.t = f
assert b.z.q.o.q.x.q.t.u.z.w.txt == "
class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: E = None
        self.s: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: E = None
        self.x: D = None
        self.q: D = None
        self.t: E = None
        self.txt = txt

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

e = A("e")
h = B("h")
j = C("j")
k = D("k")
f = E("f")
n = E("n")
b = E("b")
c = D("c")
i = E("i")
d = D("d")

e.z = f
e.v = i
e.s = d
h.q = j
h.w = c
h.o = d
j.v = e
j.o = c
k.z = h
k.w = n
k.x = d
k.q = d
k.t = b
f.u = e
f.w = e
f.y = c
f.z = h
n.u = e
n.w = e
n.y = d
n.z = h
b.u = e
b.w = e
b.y = c
b.z = h
c.z = h
c.w = n
c.x = k
c.q = d
c.t = f
i.u = e
i.w = e
i.y = d
i.z = h
d.z = h
d.w = n
d.x = k
d.q = k
d.t = f
assert b.z.q.o.q.x.q.t.u.z.w.txt == "e"