class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: B = None
        self.x: E = None
        self.v: B = None
        self.t: E = None
        self.w: D = None
        self.p: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: D = None
        self.t: D = None
        self.z: A = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: C = None
        self.v: C = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: B = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: D = None
        self.t: D = None
        self.z: A = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: C = None
        self.v: C = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: B = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

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

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