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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.x: D = None
        self.v: D = None
        self.o: D = None
        self.txt = txt

c = A("c")
f = B("f")
a = C("a")
l = D("l")
i = E("i")
d = C("d")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.x: D = None
        self.v: D = None
        self.o: D = None
        self.txt = txt

c = A("c")
f = B("f")
a = C("a")
l = D("l")
i = E("i")
d = C("d")

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