class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: E = None
        self.v: F = None
        self.y: H = None
        self.t: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: I = None
        self.q: D = None
        self.r: G = None
        self.t: H = None
        self.z: E = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: B = None
        self.v: B = None
        self.s: B = None
        self.w: G = None
        self.q: B = None
        self.p: D = None
        self.r: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: F = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: I = None
        self.q: D = None
        self.r: G = None
        self.t: H = None
        self.z: E = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: B = None
        self.v: B = None
        self.s: B = None
        self.w: G = None
        self.q: B = None
        self.p: D = None
        self.r: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: F = None
        self.z: B = None
        self.txt = txt

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

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