class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: D = None
        self.s: F = None
        self.p: E = None
        self.r: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: D = None
        self.s: F = None
        self.p: E = None
        self.r: A = None
        self.txt = txt

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

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