See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print('''move-left
for-9
move-down
end
for-25
move-right
end
for-25
move-down
end
move-left
for-9
move-down
end
for-33
move-right
end
for-15
move-down
end
for-17
move-right
end
for-23
move-down
end
for-7
move-right
end
for-9
move-down
end
for-12
move-right
end
for-15
move-down
end
for-6
move-right
end
for-17
move-down
end
for-13
move-right
end
for-2
move-right
for-18
move-down
end
end
for-12
move-down
end
move-left
for-2
move-down
end
for-11
move-right
end
for-15
move-down
end
for-5
move-left
end
for-2
move-left
for-7
move-down
end
end
for-5
move-down
end
for-8
move-left
end
for-10
move-down
end
for-9
move-right
end
for-25
move-down
end
for-7
move-right
end
for-14
move-down
end
for-9
move-right
end
for-12
move-down
end
for-22
move-right
end
for-29
move-down
end
for-11
move-right
end
for-25
move-down
end
for-27
move-right
end
for-18
move-down
end
for-8
move-right
end
for-24
move-down
end
for-22
move-right
end
move-up
for-3
move-right
end
for-33
move-down
end
move-right
move-up
for-10
move-right
end
for-18
move-down
end
for-13
move-right
end
for-23
move-down
end
for-21
move-right
end
for-23
move-down
end
for-8
move-right
end
for-9
move-down
end
for-7
move-right
end
for-2
move-down
end
for-22
move-right
end
for-2
move-right
for-9
move-down
end
end
for-26
move-right
end
for-13
move-down
end
for-15
move-right
end
for-52
move-down
end
for-5
move-right
end
for-42
move-down
end
for-8
move-left
end
for-6
move-down
end
for-2
for-16
move-down
end
move-left
end
for-2
move-left
end
for-9
move-down
end
move-right
for-24
move-down
end
for-2
move-down
move-left
end
for-4
move-left
end
for-42
move-down
end
for-20
move-right
end
for-10
move-down
end
for-39
move-right
end
for-2
move-right
for-3
move-down
end
end
for-11
move-down
end
for-24
move-right
end
for-23
move-down
end
for-25
move-right
end
for-11
move-down
end
for-23
move-right
end
for-11
move-up
end
for-13
move-right
end
for-12
move-up
end
for-29
move-right
end
for-24
move-up
end
for-34
move-right
end
move-up
for-18
move-right
end
move-down
move-left
for-14
move-down
end
for-9
move-right
end
for-21
move-down
end
for-24
move-right
end
for-36
move-down
end
for-26
move-right
end
for-2
for-14
move-right
end
move-up
end
for-7
move-up
end
for-11
move-right
end
for-2
for-19
move-right
end
move-down
end
for-13
move-down
end
move-left
''')
