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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: B = None
        self.v: I = None
        self.r: B = None
        self.w: G = None
        self.x: B = None
        self.s: B = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: B = None
        self.v: I = None
        self.r: B = None
        self.w: G = None
        self.x: B = None
        self.s: B = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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

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

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