See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
i, W, N, M, x0, y0, C, D, K, E = map(int, input().split())

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")


#for i in range(251):
#print("for-" + str(i * 2 + 1) + " move-left end")
#    print("for-" + str(i * 2 + 1) + " move-down end")
#    print("for-" + str(i * 2 + 2) + " move-right end")
#    print("for-" + str(i * 2 + 2) + " move-up end")
