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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: H = None
        self.t: C = None
        self.r: F = None
        self.q: C = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: G = None
        self.t: C = None
        self.o: G = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: H = None
        self.r: G = None
        self.t: A = None
        self.p: F = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: D = None
        self.s: A = None
        self.t: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: H = None
        self.t: C = None
        self.r: F = None
        self.q: C = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: G = None
        self.t: C = None
        self.o: G = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: H = None
        self.r: G = None
        self.t: A = None
        self.p: F = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: D = None
        self.s: A = None
        self.t: D = None
        self.txt = txt

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

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