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