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