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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: D = None
        self.r: A = None
        self.w: G = None
        self.v: F = None
        self.u: C = None
        self.s: E = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: F = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: G = None
        self.q: F = None
        self.v: G = None
        self.w: D = None
        self.u: E = None
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: C = None
        self.v: C = None
        self.z: A = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: D = None
        self.r: A = None
        self.w: G = None
        self.v: F = None
        self.u: C = None
        self.s: E = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: F = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: G = None
        self.q: F = None
        self.v: G = None
        self.w: D = None
        self.u: E = None
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: C = None
        self.v: C = None
        self.z: A = None
        self.x: C = None
        self.txt = txt

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

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

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

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