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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: A = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: B = None
        self.p: B = None
        self.r: G = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: A = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: B = None
        self.p: B = None
        self.r: G = None
        self.txt = txt

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

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

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

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

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