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

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

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

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

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

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

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

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

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

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

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

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

f.o = j
f.w = b
f.t = m
e.w = f
e.v = f
e.q = n
e.u = n
e.s = n
d.t = j
d.z = j
d.u = b
k.w = e
k.s = d
k.p = i
m.p = e
m.w = n
m.s = n
m.v = i
m.x = f
b.w = i
b.q = n
b.u = d
b.s = d
b.v = f
a.w = e
a.s = n
a.p = f
i.o = j
i.w = b
i.t = m
n.t = m
n.z = m
n.u = e
j.p = e
j.w = n
j.v = f
j.x = f
j.s = d
assert a.s.u.v.t.s.txt == "n"