class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: B = None
        self.o: F = None
        self.t: E = None
        self.u: B = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

j = A("j")
a = B("a")
b = C("b")
m = D("m")
d = E("d")
e = F("e")
c = C("c")

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

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

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

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

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

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

j = A("j")
a = B("a")
b = C("b")
m = D("m")
d = E("d")
e = F("e")
c = C("c")

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