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

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

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

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

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

f = A("f")
l = B("l")
i = C("i")
h = D("h")
a = E("a")
m = A("m")
g = A("g")
j = A("j")
e = B("e")
k = D("k")

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

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

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

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

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

f = A("f")
l = B("l")
i = C("i")
h = D("h")
a = E("a")
m = A("m")
g = A("g")
j = A("j")
e = B("e")
k = D("k")

f.w = k
f.p = l
f.s = i
f.q = g
l.z = j
l.x = i
l.s = f
i.r = h
i.y = g
i.q = l
i.t = k
h.v = l
a.x = l
a.q = i
a.z = h
a.u = f
a.o = k
m.w = k
m.p = e
m.s = i
m.q = f
g.w = h
g.p = e
g.s = i
g.q = f
j.w = h
j.p = e
j.s = i
j.q = m
e.z = g
e.x = i
e.s = m
k.v = e
assert k.v.s.w.v.s.q.w.v.x.t.txt == "k"