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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: H = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: C = None
        self.t: I = None
        self.z: H = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: F = None
        self.x: H = None
        self.o: A = None
        self.p: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: E = None
        self.q: D = None
        self.v: C = None
        self.u: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: H = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: C = None
        self.t: I = None
        self.z: H = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: F = None
        self.x: H = None
        self.o: A = None
        self.p: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: E = None
        self.q: D = None
        self.v: C = None
        self.u: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: C = None
        self.txt = txt

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

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