class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: H = None
        self.x: C = None
        self.p: F = None
        self.w: D = None
        self.r: J = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: A = None
        self.v: I = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: F = None
        self.o: C = None
        self.p: I = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: A = None
        self.v: I = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: F = None
        self.o: C = None
        self.p: I = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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