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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: E = None
        self.r: G = None
        self.o: H = None
        self.v: G = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.t: C = None
        self.q: A = None
        self.x: D = None
        self.o: D = None
        self.txt = txt

m = A("m")
i = B("i")
d = C("d")
n = D("n")
f = E("f")
l = F("l")
e = G("e")
k = H("k")
a = E("a")
b = D("b")

m.s = e
m.v = f
i.z = a
d.x = l
d.w = k
d.z = e
n.r = f
n.q = l
n.o = l
f.z = l
f.x = a
f.r = e
f.v = e
f.s = e
f.o = k
l.q = b
e.p = d
e.v = a
k.w = i
k.y = l
k.t = d
k.q = m
k.x = b
k.o = b
a.z = l
a.x = f
a.r = e
a.v = e
a.s = e
a.o = k
b.r = a
b.q = l
b.o = l
assert d.w.w.z.o.o.r.o.o.r.txt == "
class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: E = None
        self.r: G = None
        self.o: H = None
        self.v: G = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: F = None
        self.t: C = None
        self.q: A = None
        self.x: D = None
        self.o: D = None
        self.txt = txt

m = A("m")
i = B("i")
d = C("d")
n = D("n")
f = E("f")
l = F("l")
e = G("e")
k = H("k")
a = E("a")
b = D("b")

m.s = e
m.v = f
i.z = a
d.x = l
d.w = k
d.z = e
n.r = f
n.q = l
n.o = l
f.z = l
f.x = a
f.r = e
f.v = e
f.s = e
f.o = k
l.q = b
e.p = d
e.v = a
k.w = i
k.y = l
k.t = d
k.q = m
k.x = b
k.o = b
a.z = l
a.x = f
a.r = e
a.v = e
a.s = e
a.o = k
b.r = a
b.q = l
b.o = l
assert d.w.w.z.o.o.r.o.o.r.txt == "a"