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

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

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

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

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

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

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

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

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

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

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

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

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