class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: B = None
        self.q: B = None
        self.z: G = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: F = None
        self.s: B = None
        self.r: H = None
        self.v: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: D = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: F = None
        self.x: E = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: B = None
        self.q: B = None
        self.z: G = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: F = None
        self.s: B = None
        self.r: H = None
        self.v: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: D = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: F = None
        self.x: E = None
        self.s: F = None
        self.txt = txt

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

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