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

print("for-500")
print('\n')
print("\nmove-left\nend\n")
