See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print("\n\
for-100000\n\
for-999\n\
move-down\n\
if-ok else break endif\n\
end\n\
for-999\n\
move-right\n\
if-ok else break endif\n\
end\n\
for-999\n\
move-up\n\
if-ok else break endif\n\
end\n\
for-999\n\
move-left\n\
if-ok else break endif\n\
end\n\
end\n\
")