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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


for-450
    move-right
end
for-70
    open-right
    move-right
end
""")
