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