See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print('''
for-14 move-right end
for-17 move-up end
for-22 move-left end
for-13 move-up end
move-left
move-up
move-right
for-15 move-up end
for-16 move-left end
for-5 move-down end
for-14 move-left end
for-7 move-up end
for-8 move-left end
for-13 move-up end
for-8 move-left end
for-11 move-up end
for-7 move-left end
for-7 move-up end
for-8 move-left end
for-12 move-up end
for-8 move-left end
for-10 move-up end
for-10 move-left end
for-14 move-up end
for-11 move-left end
move-down
for-10 move-left end
for-10 move-down end
for-10 move-left end
for-12 move-down end
for-6 move-right end
for-19 move-down end
for-8 move-left end
for-10 move-down end
for-24 move-left end
for-8 move-down end
for-15 move-left end
for-23 move-up end
for-16 move-left end
for-14 move-down end
for-23 move-left end
for-8 move-up end
for-16 move-left end
for-14 move-down end
for-4 move-left end
for-25 move-down end
move-left
for-54 move-down end
for-15 move-right end
for-19 move-down end
for-6 move-right end
for-24 move-down end
for-8 move-right end
for-21 move-down end
for-25 move-right end
for-11 move-down end
for-23 move-right end
for-11 move-up end
for-14 move-right end
for-6 move-down end
for-10 move-right end
move-up
for-19 move-right end
move-down
move-right
for-8 move-down end
for-8 move-right end
for-11 move-down end
for-14 move-right end
for-7 move-down end
for-12 move-right end
for-10 move-down end
for-23 move-right end
for-7 move-down end
for-37 move-right end
for-17 move-down end
for-19 move-right end
for-15 move-down end
for-12 move-right end
move-up
for-26 move-right end
for-24 move-up end
for-10 move-right end
for-24 move-up end
move-right
move-up
for-11 move-right end
for-7 move-up end
for-13 move-right end
for-7 move-down end
for-12 move-right end
for-4 move-up end
for-14 move-right end
for-7 move-down end
for-8 move-right end
for-9 move-down end
for-8 move-right end
for-5 move-down end
for-4 move-right end
for-7 move-down end
for-19 move-right end
for-10 move-up end
move-right
for-7 move-up end
for-12 move-right end
for-10 move-up end
for-16 move-right end
for-15 move-down end
for-6 move-left end
for-10 move-down end
for-7 move-left end
for-10 move-down end
for-9 move-left end
for-6 move-down end
''')