See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print('''move-down
move-right
move-up
for-175
for-349
move-right
move-down
move-right
move-up
end
for-2
move-right
move-down
end
move-left
for-350
move-down
move-left
move-up
move-left
end
for-3
move-down
end
move-right
move-up
end
for-350
move-right
move-down
move-right
move-up
end
''')