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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: A = None
        self.u: C = None
        self.o: D = None
        self.y: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: A = None
        self.u: C = None
        self.o: D = None
        self.y: D = None
        self.txt = txt

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

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

a.z = j
a.o = l
a.v = n
a.w = f
a.r = f
a.y = e
l.v = n
d.o = k
d.p = j
d.x = f
b.y = n
b.s = n
f.w = a
f.v = a
f.s = n
f.y = n
f.x = b
f.t = k
n.r = d
n.u = d
n.s = a
n.o = b
n.y = e
k.s = f
k.x = f
k.v = d
k.p = n
k.z = n
e.y = n
e.s = n
j.z = a
j.o = l
j.v = n
j.w = f
j.r = f
j.y = e
i.s = f
i.x = f
i.v = d
i.p = n
i.z = n
assert l.v.s.z.z.o.v.txt == "n"