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
move-up
move-up
move-left
for-5
    move-up
end
move-left
for-4
    move-up
end
move-left
move-up
move-up
for-3
    move-left
end
move-up
for-5
    move-left
end
move-up
move-left
move-up
move-up
move-left
move-up
move-left
for-3
    move-up
end
move-left
for-6
    move-up
end
move-left
move-up
move-up
move-left
for-5
    move-up
end
move-left
for-4
    move-up
end
move-left
move-up
for-4
    move-left
end
move-up
move-up
for-17
    move-left
end
move-down
for-4
    move-left
end
move-up
for-4
    move-up
    move-left
end
move-up
move-up
move-left
move-left
move-up
move-up
move-left
move-up
move-left
for-3
    move-up
end
move-left
for-5
    move-left
    move-up
end
for-3
    move-up
    move-left
end
for-3
    move-up
    move-up
    move-left
end
move-up
move-left
for-3
    move-left
    move-up
end
move-up
move-left
move-left
for-3
    move-up
end
move-left
for-3
    move-up
end
move-left
move-left
move-up
move-up
for-3
    move-left
end
move-up
move-up
move-left
move-up
move-up
move-left
move-left
move-up
move-left
move-up
for-3
    move-up
    move-left
end
move-up
for-3
    move-up
    move-left
end
for-3
    move-up
end
move-left
for-6
    move-left
    move-up
end
for-3
    move-up
    move-left
end
move-left
for-4
    move-up
end
move-left
move-up
move-up
for-11
    move-left
end
move-down
for-10
    move-left
end
move-down
for-6
    move-left
end
for-6
    move-down
end
move-left
for-6
    move-down
end
move-left
for-6
    move-down
end
for-4
    move-right
    move-down
end
for-9
    move-down
end
move-left
move-down
move-left
move-left
for-3
    move-down
end
move-left
move-down
move-left
for-3
    move-down
end
move-left
move-down
move-left
move-left
move-down
move-left
for-4
    move-down
end
move-left
move-down
move-left
move-down
move-down
move-left
move-down
move-down
for-20
    move-left
end
move-down
move-down
move-left
for-3
    move-down
end
move-left
move-down
move-down
move-left
move-down
for-4
    move-left
end
move-up
for-5
    move-left
end
move-up
move-left
for-11
    move-up
end
move-left
for-8
    move-up
end
for-17
    move-left
end
move-down
move-down
move-left
move-down
move-left
for-3
    move-down
end
move-left
move-down
move-down
move-left
move-down
move-down
for-3
    move-left
end
move-up
for-3
    move-left
end
move-up
move-left
move-up
for-28
    move-left
end
move-down
move-left
for-3
    move-down
end
move-left
move-down
move-down
move-left
for-5
    move-down
end
move-left
for-25
    move-down
end
move-left
for-50
    move-down
end
move-right
for-4
    move-down
end
for-16
    move-right
end
move-down
move-down
move-right
for-6
    move-down
end
move-right
for-5
    move-down
end
move-right
for-6
    move-down
end
move-right
for-5
    move-down
end
move-right
for-4
    move-down
end
move-right
for-5
    move-down
end
move-right
move-down
move-down
move-right
for-3
    move-down
end
move-right
for-4
    move-down
end
move-right
move-down
move-right
move-right
for-8
    move-down
end
for-3
    move-right
end
for-7
    move-down
end
move-right
move-down
move-down
move-right
move-down
move-down
move-right
move-right
move-down
for-4
    move-right
end
move-down
for-15
    move-right
end
move-down
move-down
move-right
move-down
move-down
move-right
move-down
move-right
for-3
    move-down
end
move-right
move-down
move-right
move-down
for-3
    move-right
end
move-up
move-right
move-up
move-right
move-right
move-up
move-up
for-3
    move-right
end
move-up
move-right
move-right
move-up
move-right
move-up
move-right
move-right
move-up
for-4
    move-right
end
move-up
for-10
    move-right
end
move-down
for-7
    move-right
end
for-4
    move-down
    move-right
end
move-right
move-right
move-up
for-19
    move-right
end
for-4
    move-down
    move-right
end
move-right
move-down
for-7
    move-down
    move-right
end
move-right
move-down
move-down
move-right
move-down
move-right
move-right
move-down
for-3
    move-right
    move-down
    move-right
end
for-3
    move-down
    move-right
    move-right
    move-down
    move-right
end
for-3
    move-right
    move-down
    move-right
    move-down
    move-right
end
move-right
move-right
move-down
for-4
    move-right
end
move-down
for-3
    move-right
end
move-down
move-right
move-right
move-down
for-3
    move-right
end
move-down
move-right
move-right
move-down
for-4
    move-right
end
move-down
for-3
    move-right
end
move-down
move-right
move-right
move-down
for-3
    move-right
end
move-down
for-9
    move-right
end
move-down
for-8
    move-right
end
move-down
for-16
    move-right
end
for-18
    move-down
end
for-17
    move-right
end
move-down
move-down
move-right
for-9
    move-down
end
move-right
for-4
    move-down
end
for-6
    move-right
end
move-up
for-5
    move-right
end
move-up
move-up
for-9
    move-right
end
move-up
for-3
    move-right
end
move-up
move-right
move-right
move-up
for-5
    move-right
end
move-up
move-up
move-right
for-16
    move-up
end
move-right
move-up
move-right
move-up
move-right
move-right
move-up
move-right
move-up
for-4
    move-right
end
for-20
    move-up
end
move-right
for-3
    move-right
    move-up
end
for-4
    move-right
    move-right
    move-up
end
for-11
    move-right
end
move-down
for-8
    move-right
end
move-down
move-right
move-right
move-down
move-down
for-3
    move-right
end
move-down
move-right
move-right
move-up
move-up
for-4
    move-right
end
move-up
for-13
    move-right
end
for-12
    move-down
    move-right
end
move-right
move-down
move-down
move-right
move-right
move-down
move-down
move-right
move-down
move-right
move-down
move-down
move-right
move-right
move-down
move-right
move-down
move-right
move-right
move-down
for-3
    move-down
    move-right
end
move-right
move-down
move-right
move-down
move-right
for-9
    move-right
    move-up
end
move-up
move-right
for-7
    move-up
end
for-6
    move-right
end
for-3
    move-up
    move-right
    move-up
    move-up
    move-right
end
for-16
    move-right
end
for-7
    move-down
end
move-left
move-down
move-down
move-left
move-down
move-left
move-down
move-down
move-left
move-down
move-down
move-left
move-left
move-down
for-4
    move-down
    move-left
end
move-down
move-down
move-left
move-down
move-down
move-left
move-down
move-left
move-left
move-down
for-5
    move-down
    move-left
end
move-down
for-3
    move-down
    move-left
end
for-6
    move-down
end''')
