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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: F = None
        self.w: I = None
        self.x: C = None
        self.p: F = None
        self.u: F = None
        self.r: G = None
        self.o: C = None
        self.z: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: F = None
        self.o: G = None
        self.w: H = None
        self.v: D = None
        self.z: I = None
        self.s: D = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: E = None
        self.r: I = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: D = None
        self.o: B = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: F = None
        self.w: I = None
        self.x: C = None
        self.p: F = None
        self.u: F = None
        self.r: G = None
        self.o: C = None
        self.z: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: F = None
        self.o: G = None
        self.w: H = None
        self.v: D = None
        self.z: I = None
        self.s: D = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: E = None
        self.r: I = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: D = None
        self.o: B = None
        self.y: G = None
        self.txt = txt

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

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