class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: J = None
        self.q: J = None
        self.v: C = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: A = None
        self.u: I = None
        self.r: D = None
        self.t: J = None
        self.x: F = None
        self.w: I = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: G = None
        self.w: A = None
        self.v: E = None
        self.z: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: D = None
        self.o: C = None
        self.p: I = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: D = None
        self.y: D = None
        self.q: I = None
        self.t: F = None
        self.p: G = None
        self.o: E = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: C = None
        self.u: J = None
        self.s: E = None
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: A = None
        self.s: A = None
        self.w: A = None
        self.r: H = None
        self.u: C = None
        self.p: G = None
        self.v: D = None
        self.z: I = None
        self.txt = txt

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

m.t = a
m.o = n
m.q = n
m.v = i
m.w = b
b.q = j
b.u = a
i.o = a
i.u = a
i.w = a
i.y = m
i.r = j
i.t = n
i.x = c
i.z = b
j.y = f
j.r = g
j.w = m
j.v = e
j.z = a
e.r = g
e.o = f
e.s = f
c.z = a
c.p = a
c.y = j
c.o = i
c.t = b
g.z = b
g.q = m
f.z = c
f.t = c
f.v = c
f.w = j
f.y = j
f.q = a
f.p = g
f.o = e
a.x = e
a.s = e
a.p = i
a.u = n
a.t = j
n.t = j
n.v = j
n.q = m
n.s = m
n.w = m
n.r = f
n.u = i
n.p = g
n.z = a
assert n.z.x.o.q.u.p.q.o.txt == "
class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: J = None
        self.q: J = None
        self.v: C = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: A = None
        self.u: I = None
        self.r: D = None
        self.t: J = None
        self.x: F = None
        self.w: I = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: G = None
        self.w: A = None
        self.v: E = None
        self.z: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.y: D = None
        self.o: C = None
        self.p: I = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: D = None
        self.y: D = None
        self.q: I = None
        self.t: F = None
        self.p: G = None
        self.o: E = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: C = None
        self.u: J = None
        self.s: E = None
        self.t: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: A = None
        self.s: A = None
        self.w: A = None
        self.r: H = None
        self.u: C = None
        self.p: G = None
        self.v: D = None
        self.z: I = None
        self.txt = txt

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

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