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

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: A = None
        self.v: D = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: A = None
        self.o: G = None
        self.t: G = None
        self.y: G = None
        self.x: E = None
        self.txt = txt

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

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

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

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

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

h.t = i
h.o = i
h.v = k
h.y = k
h.s = k
h.q = k
e.w = n
e.q = n
e.o = h
e.v = m
k.v = i
k.s = h
k.o = n
k.t = n
k.y = n
k.x = a
m.z = i
m.s = k
m.r = n
a.t = k
a.r = e
a.s = e
a.q = g
a.o = g
g.z = k
n.v = h
n.t = m
n.o = m
n.s = g
n.r = g
i.t = k
i.r = e
i.s = e
i.q = g
i.o = g
assert e.o.v.o.txt == "
class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: C = None
        self.y: C = None
        self.s: C = None
        self.q: C = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: A = None
        self.v: D = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: A = None
        self.o: G = None
        self.t: G = None
        self.y: G = None
        self.x: E = None
        self.txt = txt

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

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

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

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

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

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