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