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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: G = None
        self.t: D = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: E = None
        self.r: F = None
        self.z: G = None
        self.s: A = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: G = None
        self.t: D = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: E = None
        self.r: F = None
        self.z: G = None
        self.s: A = None
        self.o: G = None
        self.txt = txt

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

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

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

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