class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: E = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: H = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: E = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: H = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: H = None
        self.txt = txt

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

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