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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: C = None
        self.o: C = None
        self.u: B = None
        self.p: H = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: F = None
        self.q: A = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: C = None
        self.o: C = None
        self.u: B = None
        self.p: H = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: F = None
        self.q: A = None
        self.txt = txt

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

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