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