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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: E = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: A = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: D = None
        self.r: D = None
        self.v: D = None
        self.txt = txt

e = A("e")
n = B("n")
b = C("b")
a = D("a")
g = E("g")
k = C("k")
c = B("c")
i = C("i")

e.y = b
e.v = c
n.z = e
n.x = g
n.s = b
b.o = a
b.r = g
b.u = e
b.z = k
b.y = c
a.r = n
a.s = n
a.o = e
g.s = e
g.w = a
g.r = a
g.v = a
k.o = a
k.r = g
k.u = e
k.z = i
k.y = c
c.z = e
c.x = g
c.s = k
i.o = a
i.r = g
i.u = e
i.z = k
i.y = n
assert k.o.o.v.x.w.o.txt == "
class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: E = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: A = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: D = None
        self.r: D = None
        self.v: D = None
        self.txt = txt

e = A("e")
n = B("n")
b = C("b")
a = D("a")
g = E("g")
k = C("k")
c = B("c")
i = C("i")

e.y = b
e.v = c
n.z = e
n.x = g
n.s = b
b.o = a
b.r = g
b.u = e
b.z = k
b.y = c
a.r = n
a.s = n
a.o = e
g.s = e
g.w = a
g.r = a
g.v = a
k.o = a
k.r = g
k.u = e
k.z = i
k.y = c
c.z = e
c.x = g
c.s = k
i.o = a
i.r = g
i.u = e
i.z = k
i.y = n
assert k.o.o.v.x.w.o.txt == "e"