See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print("""move-down
move-right
take
move-down
for-2 move-left end
move-down
move-left
move-down
move-left
move-down
for-6 move-right end
move-up
move-up
move-left
move-up
for-2 move-right end
move-down
for-4 move-right end
move-down
take
for-3 move-left end
move-down
move-right
move-down
move-right
move-down
take
for-2 move-left end
move-up
move-left
for-2 move-down end
for-2 move-left end
take
for-2 move-left end
move-up
move-left
move-up
move-left
move-down
for-2 move-left end
move-down
move-left
move-up
move-left
move-down
move-left
move-down
move-right
move-down
move-right
move-up
for-2 move-right end
move-down
move-right
move-up
move-right
for-2 move-down end
for-2 move-right end
move-down
for-2 move-right end
move-down
move-right
move-down
for-2 move-left end
move-down
move-right
for-3 move-down end
move-left
move-down
move-right
move-down
move-right
for-3 move-up end
for-3 move-right end
for-2 move-down end
move-right
move-up
move-right
move-up
move-left
move-up
move-right
move-up
for-3 move-left end
move-up
move-left
move-up
move-right
move-up
move-right
move-down
move-right
move-up
move-right
move-up
move-right
for-2 move-down end
move-left
move-down
for-4 move-right end
move-up
move-left
move-up
move-left
move-up
move-up
move-right
move-up
for-4 move-right end
move-up
for-3 move-right end
move-up
for-2 move-left end
move-up
move-left
move-up
move-up
take
for-2 move-left end
move-down
move-right
for-2 move-down end
for-2 move-left end
move-up
move-left
move-down
move-left
for-2 move-down end
move-left
move-up
move-up
move-left
move-up
move-right
for-3 move-up end
move-left
move-up
for-2 move-left end
move-up
for-3 move-left end
move-up
for-2 move-right end
for-4 move-up end
for-2 move-left end
take
move-down
for-2 move-left end
move-up
move-right
move-up
for-2 move-left end
take
move-left
move-down
for-2 move-left end
move-up
move-right
move-up
move-right
move-up
move-right
move-down
for-3 move-right end
move-down
for-3 move-right end
move-down
move-right
move-down
for-2 move-right end
move-down
for-2 move-right end
for-5 move-up end
for-3 move-left end
move-down
for-2 move-right end
for-2 move-down end
for-2 move-left end
move-up
move-left
move-up
move-left
for-3 move-up end
move-right
move-down
for-5 move-right end
move-up
move-left
move-up
move-left
for-3 move-up end
move-right
for-3 move-up end
move-right
move-up
for-2 move-right end
move-up
for-3 move-left end
move-up
for-3 move-right end
move-up
move-right
move-up
for-3 move-left end
move-down
for-3 move-left end
for-2 move-down end
move-right
for-3 move-down end
move-left
move-down
take
for-3 move-down end
for-3 move-left end
move-up
move-up
move-left
move-up
move-up
for-2 move-right end
move-up
move-left
move-up
move-right
move-up
move-left
move-up
move-left
for-3 move-down end
move-left
for-3 move-down end
for-3 move-left end
move-down
move-left
for-2 move-down end
move-right
move-up
move-right
for-2 move-down end
for-2 move-left end
move-down
move-left
move-up
move-up
move-left
move-up
move-left
move-up
move-right
take
move-right
move-up
move-right
for-4 move-up end
move-left
move-up
for-4 move-left end
move-up
move-right
move-up
for-3 move-left end
for-3 move-down end
move-left
take
for-5 move-up end
move-left
move-up
for-2 move-left end
move-down
for-2 move-left end
move-down
move-right
move-down
move-right
move-up
move-right
for-2 move-down end
for-2 move-left end
take
move-down
move-left
move-up
move-up
move-left
for-3 move-down end
move-left
move-down
move-right
take
move-right
move-up
for-3 move-right end
move-down
for-4 move-right end
move-up
move-right
for-3 move-down end
move-right
move-up
move-right
for-2 move-down end
for-3 move-left end
move-down
for-2 move-right end
for-2 move-down end
move-right
move-down
for-2 move-left end
move-up
move-left
move-up
for-6 move-left end
move-up
move-right
move-up
for-3 move-left end
for-2 move-down end
move-left
move-down
move-left
move-down
for-4 move-right end
move-up
for-2 move-right end
move-down
move-right
move-down
move-left
for-2 move-down end
move-right
for-4 move-down end
for-2 move-left end
move-up
move-right
move-up
move-up
move-left
take
move-down
move-left
for-4 move-up end
for-3 move-left end
move-down
move-right
move-down
move-left
move-down
move-right
for-2 move-down end
move-right
move-down
move-left
take
move-down
for-2 move-right end
move-down
for-2 move-left end
move-down
take
for-2 move-right end
move-down
for-2 move-right end
move-down
move-right
move-up
move-up
for-2 move-left end
move-up
move-up
for-2 move-right end
move-down
move-right
for-3 move-up end
move-right
move-down
move-right
move-up
move-right
move-down
move-right
move-down
for-2 move-left end
move-down
for-2 move-right end
move-down
move-right
move-down
move-left
move-down
move-left
take
for-2 move-left end
move-up
for-2 move-right end
move-up
for-3 move-left end
for-4 move-down end
move-left
move-up
for-2 move-left end
move-up
for-2 move-left end
move-up
move-left
take
for-2 move-left end
for-2 move-down end
move-left
move-down
for-3 move-right end
move-down
move-right
for-2 move-down end
move-right
move-down
move-right
move-down
move-right
move-down
for-2 move-left end
for-2 move-down end
move-left
for-2 move-down end
move-left
move-up
move-left
for-2 move-down end
take
for-2 move-right end
for-2 move-down end
move-left
move-up
for-3 move-left end
for-2 move-down end
for-2 move-left end
for-3 move-up end
move-left
move-up
move-up
move-left
for-4 move-up end
move-right
move-up
move-left
move-up
move-left
move-down
for-2 move-left end
move-down
for-2 move-right end
for-4 move-down end
move-left
move-down
move-right
take
move-down
move-left
move-down
for-5 move-left end
for-2 move-down end
move-right
move-down
for-2 move-right end
move-down
for-2 move-right end
for-3 move-up end
move-right
move-up
move-right
for-2 move-down end
move-right
move-down
move-left
move-down
move-left
move-down
move-right
move-down
for-3 move-right end
move-up
for-3 move-right end
for-4 move-down end
move-right
for-2 move-down end
move-right
for-2 move-down end
move-right
for-3 move-down end
move-left
move-up
move-left
move-up
move-left
move-down
move-left
move-up
move-up
move-left
move-up
move-right
move-up
for-2 move-left end
move-down
move-left
for-3 move-up end
for-2 move-left end
move-up
move-up
move-left
move-up
move-left
move-up
for-3 move-left end
move-up
move-left
move-down
for-2 move-left end
for-3 move-up end
move-left
move-up
move-up
move-left
move-up
for-5 move-left end
move-down
for-2 move-left end
move-up
move-right
move-up
for-2 move-left end
move-up
move-left
move-down
for-3 move-left end
for-3 move-up end
for-2 move-right end
move-up
for-2 move-right end
for-2 move-down end
move-right
move-down
for-2 move-right end
move-up
move-left
move-up
move-left
move-up
for-2 move-right end
move-down
move-right
move-up
move-up
for-2 move-left end
move-up
move-up
for-4 move-left end
move-up
move-up
for-2 move-left end
move-down
move-right
for-2 move-down end
move-right
move-down
for-3 move-left end
move-up
move-right
move-up
move-left
move-up
move-left
move-up
move-right
move-up
move-up
move-right
move-down
move-right
for-3 move-up end
move-left
move-down
move-left
move-up
for-2 move-left end
move-up
for-3 move-left end
move-up
move-right
move-up
move-left
move-up
move-up
move-right
for-4 move-up end
move-left
move-up
move-right
move-up
for-2 move-right end
move-up
move-up
for-2 move-left end
move-down
move-left
move-down
for-2 move-left end
move-up
take
for-2 move-left end
move-up
move-up
for-2 move-left end
move-down
move-right
move-down
move-left
for-3 move-down end
for-2 move-left end
move-down
move-left
move-down
for-2 move-left end
move-up
for-2 move-left end
for-2 move-down end
for-2 move-right end
move-down
move-left
move-down
move-left
move-down
move-right
for-4 move-down end
for-2 move-left end
for-3 move-up end
for-3 move-left end
move-down
move-left
move-up
move-up
move-right
move-up
move-up
for-3 move-right end
move-up
move-up
move-left
move-down
for-2 move-left end
move-up
move-left
move-up
move-up
move-left
move-up
move-right
for-3 move-up end
move-right
move-up
for-2 move-left end
move-up
move-up
for-4 move-left end
move-down
move-left
move-down
for-2 move-right end
move-up
for-2 move-right end
move-down
move-left
for-2 move-down end
move-right
move-up
move-right
for-2 move-down end
for-2 move-left end
for-2 move-down end
move-right
move-down
move-right
for-3 move-down end
move-right
move-down
move-left
for-2 move-down end
move-left
move-up
move-up
move-left
move-up
move-up
move-right
move-up
for-2 move-left end
move-up
move-up
for-3 move-left end
move-up
for-2 move-right end
move-up
for-2 move-left end
move-up
move-left
move-up
move-left
for-3 move-down end
for-2 move-left end
move-up
move-left
move-down
move-left
for-3 move-down end
for-2 move-right end
move-up
move-left
move-up
for-3 move-right end
move-down
move-left
move-down
for-2 move-right end
move-up
move-right
move-down
move-right
for-3 move-down end
move-left
move-up
move-up
for-3 move-left end
for-2 move-down end
for-2 move-right end
move-down
move-left
for-2 move-down end
for-3 move-left end
move-up
move-right
for-4 move-up end
for-3 move-left end
move-up
move-up
move-left
move-up
move-right
move-up
for-2 move-left end
for-2 move-down end
for-2 move-left end
move-up
move-up
move-right
move-up
move-up
move-right
move-down
move-right
for-3 move-up end
move-left
move-up
for-2 move-right end
move-up
for-2 move-left end
move-up
for-2 move-left end
for-2 move-down end
for-2 move-left end
move-down
move-right
move-down
move-left
move-down
move-left
move-down
move-left
move-up
move-left
for-3 move-down end
move-left
move-down
for-3 move-left end
move-up
move-right
move-up
move-left
move-up
move-left
for-3 move-down end
move-left
move-down
move-left
move-down
move-right
move-down
move-right
move-down
for-2 move-left end
move-up
move-left
for-3 move-up end
move-left
for-3 move-down end
move-left
move-up
move-left
move-down
move-left
for-2 move-down end
move-left
move-down
move-left
move-down
for-2 move-right end
move-down
for-3 move-right end
move-down
for-2 move-right end
move-down
move-right
move-up
for-2 move-right end
move-up
move-left
move-up
move-up
move-left
move-up
for-2 move-right end
for-3 move-up end
move-right
for-2 move-down end
move-right
move-up
move-up
move-right
move-down
move-right
for-4 move-down end
move-left
move-up
move-left
move-up
move-left
for-4 move-down end
for-2 move-right end
move-down
for-3 move-left end
move-down
move-left
for-3 move-down end
for-3 move-left end
move-down
for-3 move-right end
move-down
move-left
move-down
move-right
move-down
move-right
for-2 move-down end
move-right
move-down
for-2 move-left end
move-up
move-left
move-down
move-left
move-up
move-left
for-2 move-down end
move-right
move-down
move-left
move-down
move-right
move-down
move-right
move-down
for-3 move-left end
move-up
for-3 move-left end
move-up
move-left
move-down
move-left
for-3 move-up end
for-2 move-right end
for-3 move-up end
for-2 move-left end
move-up
move-up
move-right
move-down
for-2 move-right end
move-up
move-right
move-down
move-right
for-3 move-up end
for-4 move-left end
move-down
move-left
move-up
move-up
move-right
move-up
move-left
move-up
move-left
for-3 move-down end
move-left
for-4 move-up end
for-4 move-right end
move-up
for-2 move-right end
move-up
for-3 move-left end
move-down
for-2 move-left end
for-4 move-up end
move-left
move-down
move-left
move-down
for-3 move-left end
move-up
move-left
for-2 move-down end
move-left
move-up
move-left
move-up
move-right
move-up
move-right
move-up
move-left
move-up
for-4 move-left end
move-up
move-up
move-left
move-down
move-left
move-down
for-2 move-left end
move-up
move-up
move-right
move-up
move-left
move-up
move-left
for-3 move-up end
move-left
move-up
for-4 move-right end
for-2 move-down end
move-left
for-2 move-down end
move-right
move-down
move-right
for-4 move-up end
move-right
move-up
move-left
move-up
move-up
move-left
move-up
move-up
for-2 move-left end
move-up
move-right
move-up
for-5 move-left end
move-down
move-left
move-up
move-up
move-left
for-2 move-down end
move-left
move-down
move-right
move-down
for-2 move-right end
move-down
for-2 move-left end
move-down
move-right
for-2 move-down end
for-2 move-left end
for-3 move-up end
move-left
move-up
for-2 move-left end
move-down
move-left
move-up
for-2 move-left end
move-up
for-5 move-right end
move-up
move-up
for-2 move-left end
move-up
move-right
move-up
for-3 move-left end
move-up
for-2 move-right end
move-up
move-right
move-up
for-2 move-left end
move-down
move-left
move-up
move-left
move-up
move-left
move-up
move-left
move-up
move-up
for-3 move-left end
for-2 move-down end
for-3 move-left end
move-up
move-left
move-up
move-up
for-2 move-left end
move-up
move-right
for-3 move-up end
for-4 move-left end
move-up
open-left
for-2 move-left end
open-left
move-left
for-3 move-down end
for-2 move-right end
move-down
open-down
move-down
for-4 move-left end
move-up
for-2 move-left end
open-down
move-down
move-left
for-4 move-down end
move-left
open-down
move-down
for-2 move-left end
move-down
move-right
move-down
for-2 move-left end
move-up
for-3 move-left end
move-down
move-left
open-left
for-3 move-left end
move-up
for-2 move-left end
move-down
open-down
move-down
for-2 move-left end
move-down
move-left
move-down
for-4 move-left end
move-up
move-left
open-up
move-up
for-6 move-left end
for-2 move-down end
move-left
open-left
for-4 move-left end
move-down
for-5 move-left end
open-left
move-left
move-up
open-left
move-left
for-5 move-down end
move-left
open-left
move-left
open-left
move-left
open-left
for-3 move-left end
move-down
open-down
move-down
move-left
move-down
move-left
open-up
move-up
move-left
move-down
move-left
move-up
move-up
for-3 move-left end
for-3 move-down end
for-3 move-left end
move-down
move-left
move-down
for-2 move-left end
open-left
move-left
open-left
move-left
for-2 move-down end
open-left
for-2 move-left end
for-4 move-down end
for-5 move-left end
open-left
move-left
move-up
move-left
move-up
for-2 move-left end
move-down
move-left
move-up
move-up
move-right
move-up
move-right
move-down
move-right
move-up
move-right
move-up
move-left
move-up
for-4 move-left end
move-up
move-left
move-down
move-left
move-down
for-2 move-right end
for-3 move-down end
move-left
move-up
move-left
move-up
move-left
move-up
for-3 move-left end
for-3 move-down end
for-2 move-left end
for-2 move-down end
move-left
move-up
move-left
for-2 move-down end
move-left
for-3 move-up end
for-3 move-left end
move-down
move-left
move-up
move-left
move-down
for-2 move-left end
""")