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

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: E = None
        self.r: G = None
        self.p: H = None
        self.q: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: B = None
        self.v: J = None
        self.p: F = None
        self.q: B = None
        self.s: E = None
        self.t: D = None
        self.x: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: E = None
        self.s: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: E = None
        self.r: G = None
        self.p: H = None
        self.q: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: B = None
        self.v: J = None
        self.p: F = None
        self.q: B = None
        self.s: E = None
        self.t: D = None
        self.x: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: E = None
        self.s: G = None
        self.txt = txt

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

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