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

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: E = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: E = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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