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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.t: E = None
        self.u: J = None
        self.z: H = None
        self.w: E = None
        self.q: H = None
        self.x: A = None
        self.o: J = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: A = None
        self.u: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: J = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: C = None
        self.x: D = None
        self.y: E = None
        self.z: E = None
        self.v: J = None
        self.q: J = None
        self.p: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.t: E = None
        self.u: J = None
        self.z: H = None
        self.w: E = None
        self.q: H = None
        self.x: A = None
        self.o: J = None
        self.v: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: A = None
        self.u: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: J = None
        self.t: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: C = None
        self.x: D = None
        self.y: E = None
        self.z: E = None
        self.v: J = None
        self.q: J = None
        self.p: G = None
        self.txt = txt

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

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

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