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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: F = None
        self.z: F = None
        self.s: H = None
        self.u: F = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: F = None
        self.z: F = None
        self.s: H = None
        self.u: F = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

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