class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: C = None
        self.v: C = None
        self.o: H = None
        self.z: C = None
        self.x: H = None
        self.p: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: E = None
        self.o: A = None
        self.q: A = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: D = None
        self.y: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: G = None
        self.v: E = None
        self.p: E = None
        self.x: D = None
        self.y: C = None
        self.txt = txt

i = A("i")
d = B("d")
h = C("h")
n = D("n")
f = E("f")
e = F("e")
l = G("l")
g = H("g")
c = I("c")
a = E("a")

i.s = g
i.o = g
i.x = g
i.r = h
i.v = h
i.z = h
i.p = l
d.p = f
d.w = h
d.s = l
h.r = e
h.u = f
h.o = i
h.q = i
h.y = i
n.v = d
f.p = l
f.t = n
f.y = c
e.q = l
e.x = f
l.z = c
l.y = h
l.u = h
l.p = h
l.t = n
l.o = e
l.r = e
l.s = f
l.x = g
g.x = i
g.s = a
g.p = d
g.v = c
c.t = d
c.s = l
c.v = f
c.p = a
c.x = n
c.y = h
a.p = l
a.t = n
a.y = c
assert n.v.s.z.s.z.x.v.s.o.txt == "
class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: C = None
        self.v: C = None
        self.o: H = None
        self.z: C = None
        self.x: H = None
        self.p: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: E = None
        self.o: A = None
        self.q: A = None
        self.y: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: D = None
        self.y: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: G = None
        self.v: E = None
        self.p: E = None
        self.x: D = None
        self.y: C = None
        self.txt = txt

i = A("i")
d = B("d")
h = C("h")
n = D("n")
f = E("f")
e = F("e")
l = G("l")
g = H("g")
c = I("c")
a = E("a")

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