See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print("""

for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-12
        take
        open-down
        move-down
    end
    move-right
    for-12
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-12
        move-down
    end
    move-left
    for-12
        move-up
    end
    move-left
end

for-14
    move-down
end


for-250
    for-11
        take
        open-down
        move-down
    end
    move-right
    for-11
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-11
        move-down
    end
    move-left
    for-11
        move-up
    end
    move-left
end

for-13
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-13
        take
        open-down
        move-down
    end
    move-right
    for-13
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-13
        move-down
    end
    move-left
    for-13
        move-up
    end
    move-left
end

for-15
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-12
        take
        open-down
        move-down
    end
    move-right
    for-12
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-12
        move-down
    end
    move-left
    for-12
        move-up
    end
    move-left
end

for-14
    move-down
end


for-250
    for-8
        take
        open-down
        move-down
    end
    move-right
    for-8
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-8
        move-down
    end
    move-left
    for-8
        move-up
    end
    move-left
end

for-10
    move-down
end


for-250
    for-11
        take
        open-down
        move-down
    end
    move-right
    for-11
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-11
        move-down
    end
    move-left
    for-11
        move-up
    end
    move-left
end

for-13
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-10
        take
        open-down
        move-down
    end
    move-right
    for-10
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-10
        move-down
    end
    move-left
    for-10
        move-up
    end
    move-left
end

for-12
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-10
        take
        open-down
        move-down
    end
    move-right
    for-10
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-10
        move-down
    end
    move-left
    for-10
        move-up
    end
    move-left
end

for-12
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-13
        take
        open-down
        move-down
    end
    move-right
    for-13
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-13
        move-down
    end
    move-left
    for-13
        move-up
    end
    move-left
end

for-15
    move-down
end


for-250
    for-12
        take
        open-down
        move-down
    end
    move-right
    for-12
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-12
        move-down
    end
    move-left
    for-12
        move-up
    end
    move-left
end

for-14
    move-down
end


for-250
    for-8
        take
        open-down
        move-down
    end
    move-right
    for-8
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-8
        move-down
    end
    move-left
    for-8
        move-up
    end
    move-left
end

for-10
    move-down
end


for-250
    for-8
        take
        open-down
        move-down
    end
    move-right
    for-8
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-8
        move-down
    end
    move-left
    for-8
        move-up
    end
    move-left
end

for-10
    move-down
end


for-250
    for-12
        take
        open-down
        move-down
    end
    move-right
    for-12
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-12
        move-down
    end
    move-left
    for-12
        move-up
    end
    move-left
end

for-14
    move-down
end


for-250
    for-12
        take
        open-down
        move-down
    end
    move-right
    for-12
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-12
        move-down
    end
    move-left
    for-12
        move-up
    end
    move-left
end

for-14
    move-down
end


for-250
    for-13
        take
        open-down
        move-down
    end
    move-right
    for-13
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-13
        move-down
    end
    move-left
    for-13
        move-up
    end
    move-left
end

for-15
    move-down
end


for-250
    for-10
        take
        open-down
        move-down
    end
    move-right
    for-10
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-10
        move-down
    end
    move-left
    for-10
        move-up
    end
    move-left
end

for-12
    move-down
end


for-250
    for-11
        take
        open-down
        move-down
    end
    move-right
    for-11
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-11
        move-down
    end
    move-left
    for-11
        move-up
    end
    move-left
end

for-13
    move-down
end


for-250
    for-11
        take
        open-down
        move-down
    end
    move-right
    for-11
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-11
        move-down
    end
    move-left
    for-11
        move-up
    end
    move-left
end

for-13
    move-down
end


for-250
    for-10
        take
        open-down
        move-down
    end
    move-right
    for-10
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-10
        move-down
    end
    move-left
    for-10
        move-up
    end
    move-left
end

for-12
    move-down
end


for-250
    for-10
        take
        open-down
        move-down
    end
    move-right
    for-10
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-10
        move-down
    end
    move-left
    for-10
        move-up
    end
    move-left
end

for-12
    move-down
end


for-250
    for-10
        take
        open-down
        move-down
    end
    move-right
    for-10
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-10
        move-down
    end
    move-left
    for-10
        move-up
    end
    move-left
end

for-12
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-13
        take
        open-down
        move-down
    end
    move-right
    for-13
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-13
        move-down
    end
    move-left
    for-13
        move-up
    end
    move-left
end

for-15
    move-down
end


for-250
    for-8
        take
        open-down
        move-down
    end
    move-right
    for-8
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-8
        move-down
    end
    move-left
    for-8
        move-up
    end
    move-left
end

for-10
    move-down
end


for-250
    for-8
        take
        open-down
        move-down
    end
    move-right
    for-8
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-8
        move-down
    end
    move-left
    for-8
        move-up
    end
    move-left
end

for-10
    move-down
end


for-250
    for-8
        take
        open-down
        move-down
    end
    move-right
    for-8
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-8
        move-down
    end
    move-left
    for-8
        move-up
    end
    move-left
end

for-10
    move-down
end


for-250
    for-13
        take
        open-down
        move-down
    end
    move-right
    for-13
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-13
        move-down
    end
    move-left
    for-13
        move-up
    end
    move-left
end

for-15
    move-down
end


for-250
    for-11
        take
        open-down
        move-down
    end
    move-right
    for-11
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-11
        move-down
    end
    move-left
    for-11
        move-up
    end
    move-left
end

for-13
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-12
        take
        open-down
        move-down
    end
    move-right
    for-12
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-12
        move-down
    end
    move-left
    for-12
        move-up
    end
    move-left
end

for-14
    move-down
end


for-250
    for-9
        take
        open-down
        move-down
    end
    move-right
    for-9
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-9
        move-down
    end
    move-left
    for-9
        move-up
    end
    move-left
end

for-11
    move-down
end


for-250
    for-12
        take
        open-down
        move-down
    end
    move-right
    for-12
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-12
        move-down
    end
    move-left
    for-12
        move-up
    end
    move-left
end

for-14
    move-down
end


for-250
    for-6
        take
        open-down
        move-down
    end
    move-right
    for-6
        take
        open-up
        move-up
    end
    move-right
end

for-250
    for-6
        move-down
    end
    move-left
    for-6
        move-up
    end
    move-left
end

for-8
    move-down
end

for-500
    open-right
    move-right
end""")