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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: F = None
        self.w: G = None
        self.v: B = None
        self.r: F = None
        self.s: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: G = None
        self.q: B = None
        self.v: E = None
        self.t: A = None
        self.z: G = None
        self.u: A = None
        self.txt = txt

e = A("e")
g = B("g")
c = C("c")
j = D("j")
i = E("i")
k = F("k")
b = G("b")
h = B("h")
a = C("a")
d = G("d")

e.x = g
e.v = i
e.y = b
g.u = i
g.s = i
g.x = k
g.r = k
g.w = b
g.v = h
c.w = d
c.z = d
c.o = a
j.v = g
j.s = k
j.q = k
j.z = e
j.r = a
i.o = h
k.q = j
k.o = b
b.o = h
b.x = d
b.z = d
b.q = g
b.v = i
b.t = e
b.u = e
h.u = i
h.s = i
h.x = k
h.r = k
h.w = b
h.v = g
a.w = b
a.z = b
a.o = c
d.o = g
d.x = b
d.z = b
d.q = h
d.v = i
d.t = e
d.u = e
assert e.y.v.o.w.q.v.r.txt == "
class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: E = None
        self.y: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: F = None
        self.w: G = None
        self.v: B = None
        self.r: F = None
        self.s: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: G = None
        self.q: B = None
        self.v: E = None
        self.t: A = None
        self.z: G = None
        self.u: A = None
        self.txt = txt

e = A("e")
g = B("g")
c = C("c")
j = D("j")
i = E("i")
k = F("k")
b = G("b")
h = B("h")
a = C("a")
d = G("d")

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