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