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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: C = None
        self.o: C = None
        self.s: E = None
        self.x: B = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: C = None
        self.o: C = None
        self.s: E = None
        self.x: B = None
        self.w: F = None
        self.txt = txt

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

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