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-18
move-left
end
for-12
move-up
end
for-7
move-left
end
for-13
move-up
end
for-2
move-up
move-left
end
for-5
move-left
end
move-down
for-16
move-left
end
for-4
move-up
end
for-12
move-left
end
for-14
move-up
end
for-8
move-left
end
for-8
move-up
end
for-5
move-left
end
for-6
move-up
end
for-9
move-left
end
for-14
move-up
end
for-9
move-left
end
for-12
move-up
end
for-10
move-left
end
for-14
move-up
end
move-left
for-2
for-10
move-left
end
move-down
end
for-8
move-down
end
for-9
move-left
end
for-17
move-down
end
for-5
move-right
end
for-16
move-down
end
for-6
move-left
end
for-10
move-down
end
for-23
move-left
end
for-9
move-down
end
for-17
move-left
end
for-23
move-up
end
for-16
move-left
end
for-14
move-down
end
for-12
move-left
end
for-7
move-up
end
for-28
move-left
end
for-23
move-down
end
for-4
move-left
end
for-30
move-down
end
move-left
for-42
move-down
end
for-18
move-right
end
for-30
move-down
end
for-6
move-right
end
for-9
move-down
end
for-5
move-right
end
for-20
move-down
end
for-26
move-right
end
for-11
move-down
end
for-22
move-right
end
for-11
move-up
end
for-17
move-right
end
for-6
move-down
end
for-9
move-right
end
move-up
for-16
move-right
end
for-2
move-right
move-down
end
for-7
move-down
end
for-8
move-right
end
for-12
move-down
end
for-16
move-right
end
for-7
move-down
end
for-11
move-right
end
for-9
move-down
end
for-23
move-right
end
for-7
move-down
end
for-42
move-right
end
for-22
move-down
end
for-17
move-right
end
for-10
move-down
end
for-9
move-right
end
move-up
for-25
move-right
end
for-22
move-up
end
for-9
move-right
end
for-25
move-up
end
for-10
move-right
end
for-2
move-right
move-up
end
for-6
move-up
end
for-17
move-right
end
for-9
move-down
end
for-9
move-right
end
for-7
move-up
end
for-15
move-right
end
for-8
move-down
end
for-7
move-right
end
for-9
move-down
end
for-9
move-right
end
for-6
move-down
end
for-7
move-right
end
for-5
move-down
end
for-15
move-right
end
move-up
for-2
for-8
move-up
end
move-right
end
for-11
move-right
end
for-9
move-up
end
for-16
move-right
end
for-17
move-down
end
for-5
move-left
end
for-7
move-down
end
for-8
move-left
end
for-10
move-down
end
for-9
move-left
end
for-6
move-down
end
''')
