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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: G = None
        self.y: A = None
        self.u: B = None
        self.r: H = None
        self.z: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: G = None
        self.t: H = None
        self.u: G = None
        self.q: C = None
        self.v: C = None
        self.o: A = None
        self.txt = txt

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

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

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

e = A("e")
j = B("j")
n = C("n")
m = D("m")
c = E("c")
d = F("d")
h = G("h")
a = H("a")

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: G = None
        self.y: A = None
        self.u: B = None
        self.r: H = None
        self.z: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: G = None
        self.t: H = None
        self.u: G = None
        self.q: C = None
        self.v: C = None
        self.o: A = None
        self.txt = txt

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

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

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

e = A("e")
j = B("j")
n = C("n")
m = D("m")
c = E("c")
d = F("d")
h = G("h")
a = H("a")

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