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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: C = None
        self.u: C = None
        self.y: E = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: C = None
        self.r: D = None
        self.q: B = None
        self.s: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: E = None
        self.t: C = None
        self.txt = txt

m = A("m")
j = B("j")
n = C("n")
d = D("d")
a = E("a")
h = E("h")
i = B("i")
b = C("b")
l = E("l")

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: C = None
        self.u: C = None
        self.y: E = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: C = None
        self.r: D = None
        self.q: B = None
        self.s: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: E = None
        self.t: C = None
        self.txt = txt

m = A("m")
j = B("j")
n = C("n")
d = D("d")
a = E("a")
h = E("h")
i = B("i")
b = C("b")
l = E("l")

m.x = d
m.r = h
m.z = j
m.w = i
m.o = a
j.w = l
j.r = n
j.u = b
j.t = b
j.y = h
n.x = h
n.t = b
n.s = b
n.r = d
n.q = i
d.x = b
a.u = d
a.o = l
a.t = n
h.u = d
h.o = a
h.t = b
i.w = l
i.r = b
i.t = b
i.u = n
i.y = h
b.x = h
b.t = n
b.s = n
b.r = d
b.q = j
l.u = d
l.o = h
l.t = b
assert m.x.x.x.u.x.s.s.r.x.txt == "b"