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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: C = None
        self.q: I = None
        self.v: F = None
        self.o: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: J = None
        self.o: I = None
        self.s: A = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: C = None
        self.p: G = None
        self.z: J = None
        self.v: J = None
        self.s: I = None
        self.y: A = None
        self.t: A = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: G = None
        self.u: A = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: I = None
        self.p: A = None
        self.z: D = None
        self.o: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: C = None
        self.q: I = None
        self.v: F = None
        self.o: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: J = None
        self.o: I = None
        self.s: A = None
        self.y: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: C = None
        self.p: G = None
        self.z: J = None
        self.v: J = None
        self.s: I = None
        self.y: A = None
        self.t: A = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: G = None
        self.u: A = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: I = None
        self.p: A = None
        self.z: D = None
        self.o: H = None
        self.txt = txt

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

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