class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: G = None
        self.q: F = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: B = None
        self.w: C = None
        self.v: G = None
        self.t: F = None
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: C = None
        self.z: A = None
        self.v: F = None
        self.s: C = None
        self.p: E = None
        self.t: D = None
        self.txt = txt

b = A("b")
n = B("n")
m = C("m")
c = D("c")
f = E("f")
j = F("j")
l = G("l")
k = D("k")
d = C("d")
e = D("e")

b.w = j
b.v = m
n.z = k
n.p = m
n.v = m
n.r = b
n.y = b
m.p = l
m.y = l
m.q = j
m.w = d
m.z = d
c.t = n
c.q = j
f.r = n
f.p = n
f.w = m
f.s = m
f.v = l
f.t = j
j.z = f
j.p = e
j.y = m
j.x = c
j.u = l
l.x = j
l.v = j
l.y = m
l.s = m
l.z = b
l.p = f
l.t = e
k.t = n
k.q = j
d.p = l
d.y = l
d.q = j
d.w = m
d.z = m
e.t = n
e.q = j
assert f.w.p.p.s.txt == "
class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: G = None
        self.q: F = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: B = None
        self.w: C = None
        self.v: G = None
        self.t: F = None
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: C = None
        self.z: A = None
        self.v: F = None
        self.s: C = None
        self.p: E = None
        self.t: D = None
        self.txt = txt

b = A("b")
n = B("n")
m = C("m")
c = D("c")
f = E("f")
j = F("j")
l = G("l")
k = D("k")
d = C("d")
e = D("e")

b.w = j
b.v = m
n.z = k
n.p = m
n.v = m
n.r = b
n.y = b
m.p = l
m.y = l
m.q = j
m.w = d
m.z = d
c.t = n
c.q = j
f.r = n
f.p = n
f.w = m
f.s = m
f.v = l
f.t = j
j.z = f
j.p = e
j.y = m
j.x = c
j.u = l
l.x = j
l.v = j
l.y = m
l.s = m
l.z = b
l.p = f
l.t = e
k.t = n
k.q = j
d.p = l
d.y = l
d.q = j
d.w = m
d.z = m
e.t = n
e.q = j
assert f.w.p.p.s.txt == "m"