class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: E = None
        self.v: E = None
        self.o: A = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: E = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: E = None
        self.x: C = None
        self.txt = txt

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

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

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

j.x = i
j.w = i
j.v = i
j.o = c
j.s = n
n.q = h
n.u = i
h.r = c
h.o = i
h.x = b
g.x = n
g.s = l
g.p = l
i.u = h
i.z = a
i.r = l
i.o = j
a.r = c
a.o = i
a.x = b
b.r = c
b.o = i
b.x = a
l.x = n
l.s = g
l.p = g
c.x = i
c.w = i
c.v = i
c.o = j
c.s = n
assert i.u.o.o.v.r.x.txt == "n"