class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: F = None
        self.s: E = None
        self.u: J = None
        self.y: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: F = None
        self.v: D = None
        self.z: D = None
        self.r: I = None
        self.u: H = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: I = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: A = None
        self.s: A = None
        self.q: E = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: H = None
        self.w: C = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: F = None
        self.v: D = None
        self.z: D = None
        self.r: I = None
        self.u: H = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: I = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: A = None
        self.s: A = None
        self.q: E = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: H = None
        self.w: C = None
        self.p: D = None
        self.txt = txt

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

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

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