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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: C = None
        self.txt = txt

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

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

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