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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: C = None
        self.s: J = None
        self.x: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: E = None
        self.w: B = None
        self.v: D = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: A = None
        self.x: C = None
        self.z: C = None
        self.q: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: C = None
        self.o: F = None
        self.w: B = None
        self.z: B = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: C = None
        self.s: J = None
        self.x: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: E = None
        self.w: B = None
        self.v: D = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: A = None
        self.x: C = None
        self.z: C = None
        self.q: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: C = None
        self.o: F = None
        self.w: B = None
        self.z: B = None
        self.u: B = None
        self.txt = txt

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

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