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

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

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

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

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

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

e.q = b
e.s = b
e.z = n
e.x = l
e.p = d
b.t = l
b.z = e
b.o = e
b.r = i
b.s = d
n.v = a
g.o = n
g.s = b
l.t = b
l.s = b
l.o = k
l.u = k
l.y = n
i.o = n
i.s = b
d.q = a
d.z = f
d.s = b
d.x = l
d.p = e
k.o = f
k.s = a
f.v = a
a.t = l
a.z = d
a.o = d
a.s = d
a.r = i
assert g.o.v.t.y.v.z.x.txt == "
class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: C = None
        self.s: B = None
        self.x: E = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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

e.q = b
e.s = b
e.z = n
e.x = l
e.p = d
b.t = l
b.z = e
b.o = e
b.r = i
b.s = d
n.v = a
g.o = n
g.s = b
l.t = b
l.s = b
l.o = k
l.u = k
l.y = n
i.o = n
i.s = b
d.q = a
d.z = f
d.s = b
d.x = l
d.p = e
k.o = f
k.s = a
f.v = a
a.t = l
a.z = d
a.o = d
a.s = d
a.r = i
assert g.o.v.t.y.v.z.x.txt == "l"