class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.r: E = None
        self.u: E = None
        self.s: F = None
        self.v: F = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: G = None
        self.x: D = None
        self.r: J = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: A = None
        self.o: H = None
        self.w: A = None
        self.s: B = None
        self.v: C = None
        self.q: D = None
        self.r: E = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: G = None
        self.x: D = None
        self.r: J = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: A = None
        self.o: H = None
        self.w: A = None
        self.s: B = None
        self.v: C = None
        self.q: D = None
        self.r: E = None
        self.y: H = None
        self.txt = txt

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

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