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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: D = None
        self.p: E = None
        self.x: C = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: B = None
        self.z: A = None
        self.x: B = None
        self.w: B = None
        self.txt = txt

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

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

c = A("c")
e = B("e")
l = C("l")
a = D("a")
d = E("d")
m = D("m")
f = E("f")
h = A("h")

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: D = None
        self.p: E = None
        self.x: C = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: B = None
        self.z: A = None
        self.x: B = None
        self.w: B = None
        self.txt = txt

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

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

c = A("c")
e = B("e")
l = C("l")
a = D("a")
d = E("d")
m = D("m")
f = E("f")
h = A("h")

c.o = a
c.t = h
c.z = e
c.y = e
c.v = f
e.y = d
e.p = d
e.w = a
e.x = l
e.u = m
l.r = e
l.q = e
l.x = e
l.w = e
l.z = h
a.r = e
a.s = c
a.t = f
a.z = m
a.u = d
d.x = f
m.r = e
m.s = h
m.t = f
m.z = a
m.u = d
f.x = d
h.o = m
h.t = c
h.z = e
h.y = e
h.v = f
assert m.s.o.t.x.x.x.txt == "d"