class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: I = None
        self.s: G = None
        self.w: D = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: A = None
        self.t: G = None
        self.p: B = None
        self.z: J = None
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: B = None
        self.t: D = None
        self.z: I = None
        self.x: D = None
        self.r: I = None
        self.u: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: B = None
        self.r: I = None
        self.y: G = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: A = None
        self.t: G = None
        self.p: B = None
        self.z: J = None
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.s: B = None
        self.t: D = None
        self.z: I = None
        self.x: D = None
        self.r: I = None
        self.u: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: B = None
        self.r: I = None
        self.y: G = None
        self.x: F = None
        self.txt = txt

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

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