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

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: F = None
        self.s: H = None
        self.txt = txt

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

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

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

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

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

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

i.y = f
i.s = c
n.y = f
n.v = f
n.t = f
n.s = k
n.u = k
n.z = e
n.r = e
n.q = i
e.q = h
e.o = k
e.s = m
f.o = c
f.q = k
h.p = m
h.z = f
h.v = e
k.p = f
k.q = c
k.s = i
k.y = e
j.z = e
j.y = m
j.s = i
m.w = f
m.o = f
m.p = f
m.v = h
m.u = h
m.t = j
m.y = k
c.z = e
c.y = m
c.s = i
d.z = e
d.y = m
d.s = i
assert j.z.o.s.y.q.s.s.y.v.p.txt == "
class A:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: F = None
        self.s: H = None
        self.txt = txt

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

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

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

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

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

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

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