class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: E = None
        self.u: B = None
        self.t: H = None
        self.w: D = None
        self.v: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: I = None
        self.t: E = None
        self.r: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: H = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: A = None
        self.p: C = None
        self.s: I = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: D = None
        self.q: C = None
        self.p: B = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: G = None
        self.o: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: I = None
        self.t: E = None
        self.r: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: H = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: A = None
        self.p: C = None
        self.s: I = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: D = None
        self.q: C = None
        self.p: B = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: G = None
        self.o: A = None
        self.txt = txt

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

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

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