See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print('''for-3
move-up
end
for-10
move-right
end
move-up
move-right
for-2
move-up
end
move-left
move-up
move-up
for-2
move-up
move-up
move-up
move-left
move-up
end
for-2
move-up
move-left
move-left
move-left
end
for-2
move-left
end
for-2
move-up
move-left
move-up
end
for-2
move-left
move-up
move-up
move-up
end
for-3
move-up
end
for-2
move-left
move-up
move-up
end
for-2
move-up
move-up
move-up
move-left
move-up
end
for-4
move-left
end
for-2
move-up
end
for-13
move-left
end
move-down
for-8
move-left
end
move-up
for-4
move-up
move-left
end
for-2
move-up
end
for-2
move-left
end
for-2
move-up
end
for-2
move-left
move-up
end
for-2
move-up
end
for-2
move-left
end
for-4
move-up
move-left
end
for-2
move-up
end
for-3
move-left
move-up
end
for-3
move-up
move-left
move-up
end
for-2
move-left
end
for-2
move-up
move-left
end
for-2
move-up
end
move-left
for-2
move-left
move-up
move-up
move-up
end
for-2
move-left
move-left
move-up
move-up
move-left
end
for-2
move-up
end
for-2
move-left
end
for-2
move-up
move-left
move-up
end
for-2
move-left
move-up
end
for-3
move-up
move-left
end
for-3
move-up
end
for-2
move-left
end
for-5
move-up
move-left
end
for-2
move-up
end
for-2
move-left
move-up
end
for-2
move-left
end
for-2
move-up
end
for-2
move-up
move-up
move-left
end
for-8
move-left
end
for-2
move-left
move-left
move-down
end
for-2
move-down
move-left
end
for-4
move-left
move-down
end
for-2
move-left
end
for-3
move-down
end
for-2
move-left
end
for-4
move-down
move-left
end
for-2
move-down
move-left
move-down
end
for-7
move-down
end
for-4
move-down
move-right
end
for-13
move-down
end
move-left
move-down
for-2
move-down
move-left
end
for-3
move-down
end
for-2
move-left
end
for-2
move-down
move-down
move-left
end
for-18
move-left
end
move-down
move-left
for-2
move-down
move-left
move-down
end
for-2
move-down
end
for-7
move-left
end
for-2
move-left
move-left
move-left
move-left
move-up
move-left
end
for-3
move-up
end
for-2
move-up
move-up
move-up
move-up
move-up
move-up
move-up
move-up
move-left
end
for-9
move-left
end
for-2
move-left
move-down
end
for-2
move-down
move-down
move-left
move-down
end
for-2
move-left
move-down
move-left
move-left
end
for-4
move-left
end
move-up
for-2
move-left
end
for-2
move-left
move-up
end
for-21
move-left
end
for-2
move-left
move-down
end
for-3
move-down
move-down
move-down
move-left
end
for-3
move-down
move-down
move-down
move-down
move-left
end
for-7
move-down
end
for-2
move-left
end
for-2
move-down
move-down
move-down
move-down
move-down
move-down
move-down
move-down
move-down
move-down
move-down
move-left
move-down
end
for-41
move-down
end
for-11
move-right
end
for-3
move-down
end
for-2
move-right
move-down
end
for-2
move-down
move-down
move-down
move-right
end
for-10
move-down
end
for-2
move-right
end
for-6
move-down
end
for-2
move-down
move-right
move-down
end
for-2
move-down
move-down
move-down
move-right
end
for-9
move-down
end
for-3
move-right
end
for-2
move-down
end
for-2
move-right
move-down
end
for-2
move-down
end
for-2
move-down
move-right
move-down
move-down
end
for-2
move-right
move-down
move-right
move-right
move-right
move-right
move-right
move-right
move-right
move-right
move-right
end
for-3
move-right
move-down
move-down
end
for-3
move-down
move-right
end
for-8
move-right
end
for-2
move-right
move-up
end
for-2
move-right
end
for-2
move-up
end
for-3
move-right
end
move-up
move-right
for-2
move-right
move-up
end
for-2
move-right
move-right
move-up
move-right
move-right
end
for-7
move-right
end
for-5
move-down
move-right
end
for-9
move-right
end
move-up
for-12
move-right
end
for-11
move-down
move-right
end
for-2
move-down
end
for-2
move-right
end
for-3
move-down
move-right
end
for-5
move-down
end
for-7
move-right
end
for-2
move-down
end
for-2
move-right
end
for-4
move-down
move-right
move-right
move-down
move-right
end
for-2
move-right
move-down
end
for-2
move-right
end
for-2
move-down
end
move-right
for-3
move-down
end
for-9
move-right
end
for-3
move-right
move-down
move-right
move-right
end
for-2
move-down
end
for-3
move-right
end
for-2
move-right
move-right
move-down
move-right
end
for-2
move-right
move-right
move-right
move-down
end
for-5
move-right
end
for-2
move-right
move-right
move-right
move-down
move-right
move-right
move-right
move-right
move-right
move-right
move-right
end
for-2
move-right
move-down
end
for-15
move-down
end
for-17
move-right
end
for-2
move-down
move-right
move-down
move-down
move-down
move-down
end
for-12
move-right
end
move-up
for-5
move-right
end
for-2
move-up
end
for-9
move-right
end
move-up
move-right
for-2
move-right
move-right
move-up
end
for-4
move-right
end
for-2
move-right
move-up
move-up
end
for-13
move-up
end
for-3
move-up
move-right
end
for-2
move-right
move-up
end
for-4
move-right
end
for-20
move-up
end
for-2
move-right
end
for-3
move-up
move-right
end
for-4
move-right
move-up
move-right
end
for-9
move-right
end
move-down
move-right
for-2
move-right
move-down
end
for-2
move-down
move-right
move-right
end
for-9
move-right
end
move-up
for-2
move-up
move-right
move-right
move-right
move-right
end
for-2
move-right
end
for-5
move-down
move-right
end
for-2
move-down
end
for-2
move-right
move-right
move-down
end
for-4
move-down
move-right
end
for-3
move-down
end
for-3
move-right
end
for-5
move-down
move-right
end
for-3
move-down
move-down
move-right
move-right
end
for-9
move-right
end
for-7
move-up
move-right
end
for-2
move-up
move-right
move-up
end
for-6
move-up
end
for-5
move-right
end
for-3
move-right
move-up
move-right
move-up
move-up
end
for-9
move-right
end
for-2
move-right
move-down
move-right
end
for-2
move-right
move-down
end
for-2
move-right
end
for-12
move-down
end
for-3
move-down
move-left
move-down
move-left
move-down
move-down
move-left
end
for-2
move-left
end
for-2
move-down
end
for-2
move-down
move-left
end
for-2
move-down
end
for-2
move-left
end
for-2
move-down
move-left
move-down
move-down
move-left
end
for-3
move-left
end
''')
