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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: D = None
        self.s: F = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: A = None
        self.u: H = None
        self.v: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: I = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: B = None
        self.z: A = None
        self.t: A = None
        self.o: H = None
        self.v: I = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: B = None
        self.q: G = None
        self.s: C = None
        self.z: C = None
        self.o: J = None
        self.x: J = None
        self.t: E = None
        self.w: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: D = None
        self.s: F = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: A = None
        self.u: H = None
        self.v: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: I = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: J = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: B = None
        self.z: A = None
        self.t: A = None
        self.o: H = None
        self.v: I = None
        self.r: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: B = None
        self.q: G = None
        self.s: C = None
        self.z: C = None
        self.o: J = None
        self.x: J = None
        self.t: E = None
        self.w: H = None
        self.txt = txt

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

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

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