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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: E = None
        self.y: B = None
        self.q: E = None
        self.txt = txt

j = A("j")
n = B("n")
i = C("i")
h = D("h")
g = E("g")
e = D("e")
d = E("d")
c = C("c")

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: E = None
        self.y: B = None
        self.q: E = None
        self.txt = txt

j = A("j")
n = B("n")
i = C("i")
h = D("h")
g = E("g")
e = D("e")
d = E("d")
c = C("c")

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