class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: J = None
        self.t: I = None
        self.s: G = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.x: H = None
        self.z: G = None
        self.s: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: C = None
        self.q: J = None
        self.r: E = None
        self.s: A = None
        self.o: B = None
        self.t: H = None
        self.v: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: J = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.x: H = None
        self.z: G = None
        self.s: J = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: C = None
        self.q: J = None
        self.r: E = None
        self.s: A = None
        self.o: B = None
        self.t: H = None
        self.v: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.z: J = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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