class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: I = None
        self.q: D = None
        self.y: F = None
        self.x: I = None
        self.w: I = None
        self.p: B = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.o: A = None
        self.y: J = None
        self.w: I = None
        self.t: H = None
        self.s: J = None
        self.q: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: I = None
        self.t: G = None
        self.u: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.s: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: J = None
        self.p: E = None
        self.x: B = None
        self.r: B = None
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: B = None
        self.p: C = None
        self.v: E = None
        self.u: F = None
        self.txt = txt

m = A("m")
l = B("l")
n = C("n")
d = D("d")
b = E("b")
k = F("k")
a = G("a")
c = H("c")
e = I("e")
j = J("j")

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.o: A = None
        self.y: J = None
        self.w: I = None
        self.t: H = None
        self.s: J = None
        self.q: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: I = None
        self.t: G = None
        self.u: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.s: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: J = None
        self.p: E = None
        self.x: B = None
        self.r: B = None
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: B = None
        self.p: C = None
        self.v: E = None
        self.u: F = None
        self.txt = txt

m = A("m")
l = B("l")
n = C("n")
d = D("d")
b = E("b")
k = F("k")
a = G("a")
c = H("c")
e = I("e")
j = J("j")

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