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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.p: C = None
        self.x: F = None
        self.w: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: I = None
        self.y: B = None
        self.u: G = None
        self.q: C = None
        self.x: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: C = None
        self.v: H = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: E = None
        self.s: I = None
        self.w: D = None
        self.t: E = None
        self.p: G = None
        self.z: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: F = None
        self.p: F = None
        self.o: E = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.p: C = None
        self.x: F = None
        self.w: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: I = None
        self.y: B = None
        self.u: G = None
        self.q: C = None
        self.x: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: C = None
        self.v: H = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: E = None
        self.s: I = None
        self.w: D = None
        self.t: E = None
        self.p: G = None
        self.z: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: F = None
        self.p: F = None
        self.o: E = None
        self.q: D = None
        self.txt = txt

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

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