class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: G = None
        self.o: G = None
        self.w: G = None
        self.v: D = None
        self.r: G = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: A = None
        self.s: C = None
        self.p: F = None
        self.q: C = None
        self.r: F = None
        self.w: A = None
        self.x: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: F = None
        self.t: G = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: A = None
        self.s: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: G = None
        self.o: G = None
        self.w: G = None
        self.v: D = None
        self.r: G = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: A = None
        self.s: C = None
        self.p: F = None
        self.q: C = None
        self.r: F = None
        self.w: A = None
        self.x: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: F = None
        self.t: G = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: A = None
        self.s: I = None
        self.txt = txt

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

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