See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print("""for-11 move-right end
for-6 move-up end
move-left
for-5 move-up end
move-left
for-4 move-up end
move-left
for-2 move-up end
for-3 move-left end
move-up
for-5 move-left end
move-up
move-left
for-2 move-up end
move-left
move-up
move-left
for-3 move-up end
move-left
for-6 move-up end
move-left
for-2 move-up end
move-left
for-5 move-up end
move-left
for-4 move-up end
move-left
move-up
for-4 move-left end
for-2 move-up end
for-13 move-left end
move-down
for-8 move-left end
for-2 move-up end
move-left
move-up
move-left
move-up
move-left
move-up
move-left
for-2 move-up end
for-2 move-left end
for-2 move-up end
move-left
move-up
move-left
for-3 move-up end
for-2 move-left end
move-up
move-left
move-up
move-left
move-up
move-left
move-up
move-left
for-2 move-up end
move-left
move-up
move-left
move-up
move-left
for-2 move-up end
move-left
for-2 move-up end
move-left
for-2 move-up end
move-left
move-up
for-2 move-left end
move-up
move-left
move-up
move-left
for-2 move-up end
for-2 move-left end
for-3 move-up end
move-left
for-3 move-up end
for-2 move-left end
for-2 move-up end
for-3 move-left end
for-2 move-up end
move-left
for-2 move-up end
for-2 move-left end
move-up
move-left
for-2 move-up end
move-left
move-up
move-left
move-up
move-left
for-2 move-up end
move-left
move-up
move-left
move-up
move-left
for-3 move-up end
for-2 move-left end
move-up
move-left
move-up
move-left
move-up
move-left
move-up
move-left
move-up
move-left
for-2 move-up end
move-left
move-up
move-left
move-up
for-2 move-left end
for-4 move-up end
move-left
for-2 move-up end
for-11 move-left end
move-down
for-2 move-left end
for-2 move-down end
move-left
move-down
for-2 move-left end
move-down
move-left
move-down
move-left
move-down
move-left
move-down
for-2 move-left end
for-3 move-down end
for-2 move-left end
move-down
move-left
move-down
move-left
move-down
move-left
move-down
move-left
move-down
move-left
for-2 move-down end
move-left
for-9 move-down end
move-right
move-down
move-right
move-down
move-right
move-down
move-right
for-13 move-down end
move-left
for-2 move-down end
move-left
move-down
move-left
for-3 move-down end
for-2 move-left end
for-2 move-down end
move-left
for-2 move-down end
for-19 move-left end
move-down
move-left
move-down
move-left
for-2 move-down end
move-left
for-3 move-down end
for-11 move-left end
move-up
for-5 move-left end
move-up
move-left
for-11 move-up end
move-left
for-8 move-up end
for-11 move-left end
move-down
move-left
for-3 move-down end
move-left
for-3 move-down end
move-left
move-down
move-left
move-down
for-3 move-left end
move-down
for-6 move-left end
move-up
for-3 move-left end
move-up
move-left
move-up
for-22 move-left end
move-down
move-left
for-4 move-down end
move-left
for-3 move-down end
move-left
for-3 move-down end
move-left
for-4 move-down end
move-left
for-4 move-down end
move-left
for-4 move-down end
move-left
for-7 move-down end
for-2 move-left end
for-11 move-down end
move-left
for-12 move-down end
move-left
for-42 move-down end
for-11 move-right end
for-3 move-down end
move-right
move-down
move-right
for-4 move-down end
move-right
for-3 move-down end
move-right
for-10 move-down end
for-2 move-right end
for-7 move-down end
move-right
for-2 move-down end
move-right
for-4 move-down end
move-right
for-3 move-down end
move-right
for-9 move-down end
for-3 move-right end
for-2 move-down end
move-right
move-down
move-right
for-4 move-down end
move-right
for-3 move-down end
move-right
for-2 move-down end
move-right
move-down
for-10 move-right end
move-down
for-10 move-right end
for-2 move-down end
move-right
for-2 move-down end
move-right
for-3 move-down end
move-right
move-down
move-right
move-down
for-11 move-right end
for-2 move-up end
for-14 move-right end
for-2 move-up end
for-2 move-right end
move-up
for-4 move-right end
move-up
move-right
move-up
move-right
for-2 move-up end
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
for-19 move-right end
move-up
for-3 move-right end
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
for-2 move-down end
for-2 move-right end
move-down
move-right
move-down
move-right
move-down
move-right
for-5 move-down end
for-7 move-right end
for-2 move-down end
for-2 move-right end
move-down
for-2 move-right end
move-down
move-right
move-down
for-2 move-right end
move-down
move-right
move-down
for-2 move-right end
move-down
move-right
move-down
for-2 move-right end
move-down
for-2 move-right end
move-down
move-right
move-down
for-2 move-right end
for-2 move-down end
move-right
for-3 move-down end
for-10 move-right end
move-down
for-3 move-right end
move-down
for-3 move-right end
move-down
for-2 move-right end
for-2 move-down end
for-5 move-right end
move-down
for-3 move-right end
move-down
for-4 move-right end
move-down
for-3 move-right end
move-down
for-8 move-right end
move-down
for-10 move-right end
move-down
for-8 move-right end
move-down
move-right
for-16 move-down end
for-17 move-right end
move-down
move-right
for-5 move-down end
move-right
for-4 move-down end
for-24 move-right end
move-up
for-14 move-right end
for-11 move-up end
move-right
for-8 move-up end
move-right
move-up
for-5 move-right end
move-up
move-right
move-up
for-2 move-right end
for-18 move-up end
move-right
for-2 move-up end
move-right
move-up
for-2 move-right end
move-up
move-right
move-up
for-2 move-right end
move-up
for-2 move-right end
move-up
move-right
move-up
for-2 move-right end
for-2 move-up end
for-3 move-right end
move-up
for-2 move-right end
move-up
move-right
move-up
move-right
move-up
move-right
move-down
for-2 move-right end
move-down
move-right
for-2 move-down end
for-2 move-right end
move-down
for-17 move-right end
move-up
move-right
move-up
move-right
move-up
for-2 move-right end
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
for-2 move-down end
for-2 move-right end
move-down
for-2 move-right end
for-2 move-down end
move-right
move-down
move-right
move-down
move-right
move-down
move-right
for-3 move-down end
for-3 move-right end
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
move-down
move-right
for-2 move-down end
for-2 move-right end
for-2 move-down end
for-2 move-right end
for-2 move-down end
for-19 move-right end
for-2 move-up end
for-2 move-right end
move-up
move-right
for-2 move-up end
for-2 move-right end
for-3 move-up end
for-2 move-right end
for-2 move-up end
for-2 move-right end
for-2 move-up end
for-2 move-right end
for-2 move-up end
move-right
for-2 move-up end
for-2 move-right end
for-3 move-up end
move-right
move-up
move-right
for-2 move-up end
move-right
move-up
move-right
for-2 move-up end
move-right
move-up
for-3 move-right end
move-down
for-2 move-right end
move-down
for-2 move-right end
move-down
move-right
move-down
for-2 move-right end
for-13 move-down end
move-left
move-down
move-left
for-2 move-down end
move-left
move-down
move-left
move-down
move-left
for-2 move-down end
move-left
move-down
move-left
move-down
move-left
for-2 move-down end
for-3 move-left end
for-3 move-down end
move-left
move-down
move-left
for-2 move-down end
for-2 move-left end
move-down
move-left
for-2 move-down end
move-left
move-down
move-left
for-2 move-down end
for-4 move-left end
""")