class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: D = None
        self.q: D = None
        self.p: A = None
        self.w: G = None
        self.v: F = None
        self.o: C = None
        self.u: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: H = None
        self.s: D = None
        self.p: E = None
        self.x: B = None
        self.r: B = None
        self.w: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: B = None
        self.r: F = None
        self.v: B = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: H = None
        self.s: D = None
        self.p: E = None
        self.x: B = None
        self.r: B = None
        self.w: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: B = None
        self.r: F = None
        self.v: B = None
        self.s: F = None
        self.txt = txt

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

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