See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
for i in range(500):
    print("for-" + str(i + 1))
    print("move-left")
    print("for-" + str(i + 1))
    print("move-down")
    print("for-" + str(i + 1))
    print("move-right")
    print("for-" + str(i + 1))
    print("move-up")

print("for-500")
print("move-left")