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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.w: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

i.o = h
i.z = h
i.s = e
i.v = d
i.p = j
j.v = h
j.w = i
j.x = g
g.o = a
g.w = i
a.v = d
a.t = d
a.w = d
k.s = e
k.p = h
h.p = g
h.q = e
e.s = g
d.t = a
c.s = e
c.p = h
assert e.s.o.w.t.t.t.txt == "
class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: G = None
        self.v: H = None
        self.p: B = None
        self.z: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: H = None
        self.w: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

i.o = h
i.z = h
i.s = e
i.v = d
i.p = j
j.v = h
j.w = i
j.x = g
g.o = a
g.w = i
a.v = d
a.t = d
a.w = d
k.s = e
k.p = h
h.p = g
h.q = e
e.s = g
d.t = a
c.s = e
c.p = h
assert e.s.o.w.t.t.t.txt == "a"