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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: B = None
        self.q: F = None
        self.y: A = None
        self.v: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: A = None
        self.y: B = None
        self.t: E = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: B = None
        self.q: F = None
        self.y: A = None
        self.v: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: A = None
        self.y: B = None
        self.t: E = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

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

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

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

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