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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: I = None
        self.q: I = None
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: F = None
        self.t: G = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: E = None
        self.w: E = None
        self.u: H = None
        self.y: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: I = None
        self.q: I = None
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: F = None
        self.t: G = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: E = None
        self.w: E = None
        self.u: H = None
        self.y: G = None
        self.txt = txt

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

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