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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: C = None
        self.p: C = None
        self.q: D = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: C = None
        self.p: C = None
        self.q: D = None
        self.v: E = None
        self.txt = txt

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

m.o = c
m.u = j
m.z = h
b.p = m
b.t = e
n.w = j
n.u = g
n.z = m
n.t = m
n.q = h
i.z = m
i.s = m
i.w = c
e.t = n
e.p = n
e.s = g
e.q = i
e.v = j
h.z = m
h.s = m
h.w = b
g.w = j
g.u = n
g.z = m
g.t = m
g.q = h
j.t = n
j.s = n
j.p = n
j.q = h
j.v = e
l.z = m
l.s = m
l.w = c
c.p = m
c.t = e
assert b.t.s.w.v.t.t.z.s.u.v.txt == "e"