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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: E = None
        self.p: D = None
        self.o: D = None
        self.w: B = None
        self.u: A = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.u: E = None
        self.q: E = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: C = None
        self.q: E = None
        self.t: G = None
        self.o: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: E = None
        self.p: D = None
        self.o: D = None
        self.w: B = None
        self.u: A = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.u: E = None
        self.q: E = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: C = None
        self.q: E = None
        self.t: G = None
        self.o: D = None
        self.txt = txt

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

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

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