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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: E = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: B = None
        self.t: G = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: E = None
        self.r: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: B = None
        self.t: G = None
        self.txt = txt

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

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

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

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