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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: E = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: E = None
        self.z: C = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: A = None
        self.o: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: E = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: E = None
        self.z: C = None
        self.u: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: A = None
        self.o: E = None
        self.txt = txt

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

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