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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: F = None
        self.u: H = None
        self.w: F = None
        self.q: E = None
        self.x: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: F = None
        self.v: G = None
        self.t: D = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: H = None
        self.o: G = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.z: F = None
        self.y: A = None
        self.t: C = None
        self.o: F = None
        self.txt = txt

g = A("g")
m = B("m")
c = C("c")
i = D("i")
j = E("j")
l = F("l")
e = G("e")
a = H("a")

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: F = None
        self.u: H = None
        self.w: F = None
        self.q: E = None
        self.x: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: F = None
        self.v: G = None
        self.t: D = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: H = None
        self.o: G = None
        self.z: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.z: F = None
        self.y: A = None
        self.t: C = None
        self.o: F = None
        self.txt = txt

g = A("g")
m = B("m")
c = C("c")
i = D("i")
j = E("j")
l = F("l")
e = G("e")
a = H("a")

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