See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
s = ""
s += "for-500\n"
s += "  move-left"
s += "  for-499 if-ok move-left else break endif end\n"

s += "  move-down\n"
s += "  for-499 if-ok move-down else break endif end\n"

s += "  move-right\n"
s += "  for-499 if-ok move-right else break endif end\n"

s += "  move-up\n"
s += "  for-499 if-ok move-up else break endif end\n"
s += "end"
#print(s, file=open("robot.abc", "w"))
print(s)