class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: D = None
        self.y: D = None
        self.q: A = None
        self.w: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: A = None
        self.t: A = None
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: A = None
        self.t: A = None
        self.u: D = None
        self.txt = txt

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

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

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