class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: J = None
        self.t: J = None
        self.w: J = None
        self.o: F = None
        self.s: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.y: J = None
        self.p: A = None
        self.v: E = None
        self.z: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: A = None
        self.p: D = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: F = None
        self.p: E = None
        self.z: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: A = None
        self.z: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.y: J = None
        self.p: A = None
        self.v: E = None
        self.z: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: A = None
        self.p: D = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: F = None
        self.p: E = None
        self.z: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: A = None
        self.z: B = None
        self.txt = txt

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

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