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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: A = None
        self.o: B = None
        self.p: J = None
        self.z: G = None
        self.y: F = None
        self.x: F = None
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.r: I = None
        self.t: H = None
        self.v: B = None
        self.s: E = None
        self.z: H = None
        self.w: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: E = None
        self.q: E = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: A = None
        self.o: B = None
        self.p: J = None
        self.z: G = None
        self.y: F = None
        self.x: F = None
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.r: I = None
        self.t: H = None
        self.v: B = None
        self.s: E = None
        self.z: H = None
        self.w: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: E = None
        self.q: E = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

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

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

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