class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.o: F = None
        self.x: E = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: A = None
        self.z: G = None
        self.q: A = None
        self.v: A = None
        self.r: A = None
        self.y: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: A = None
        self.z: G = None
        self.q: A = None
        self.v: A = None
        self.r: A = None
        self.y: D = None
        self.txt = txt

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

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

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