See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
s = ""
for n in range(1, 500):
    s += "for-{:d} move-left end\n".format(n)
    s += "for-{:d} move-down end\n".format(n)
    s += "for-{:d} move-right end\n".format(n + 1)
    s += "for-{:d} move-up end\n".format(n + 1)
s += "for-{:d} move-left end\n".format(500)
#print(s, file=open("robot.abc", "w"))
print(s)