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

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: F = None
        self.x: I = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: E = None
        self.u: I = None
        self.s: H = None
        self.w: H = None
        self.y: I = None
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: H = None
        self.z: I = None
        self.u: E = None
        self.q: C = None
        self.v: A = None
        self.w: G = None
        self.s: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: B = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: F = None
        self.x: I = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: E = None
        self.u: I = None
        self.s: H = None
        self.w: H = None
        self.y: I = None
        self.x: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: H = None
        self.z: I = None
        self.u: E = None
        self.q: C = None
        self.v: A = None
        self.w: G = None
        self.s: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: B = None
        self.v: F = None
        self.txt = txt

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

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