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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: H = None
        self.o: F = None
        self.s: D = None
        self.z: I = None
        self.q: B = None
        self.v: A = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: F = None
        self.t: B = None
        self.v: A = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: A = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: E = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: G = None
        self.q: I = None
        self.y: A = None
        self.r: F = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: C = None
        self.t: H = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: H = None
        self.o: F = None
        self.s: D = None
        self.z: I = None
        self.q: B = None
        self.v: A = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: F = None
        self.t: B = None
        self.v: A = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: A = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: E = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: G = None
        self.q: I = None
        self.y: A = None
        self.r: F = None
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: C = None
        self.t: H = None
        self.x: C = None
        self.txt = txt

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

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