See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print("for-351")

print("for-351")
print("for-2 move-down end")
print("for-2 move-right end")
print("for-2 move-up end")
print("for-2 move-right end")
print("end")

print("for-352")
print("for-2 move-left end")
print("for-2 move-down end")
print("for-2 move-left end")
print("for-2 move-up end")
print("end")

print("for-2 move-down end")
print("end")