See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print("""
for-31
    for-100
        move-down
        move-right
        if-ok
            break
        else
            continue
        endif
    for-249
        for-30
            take
            move-up
            if-ok
                continue
            else
                open-up
                if-ok
                    continue
                else
                    break
                endif
            endif
        move-right
        for-30
            take
            move-down
            if-ok
                continue
            else
                open-down
                if-ok
                    continue
                else
                    break
                endif
            endif
        move-right
    for-30
        take
        move-up
        if-ok
            continue
        else
            open-up
            if-ok
                continue
            else
                break
            endif
        endif
    for-249
        for-20
            move-down
        move-left
        for-20
            move-up
        move-left
    for-20
        move-down
    move-left
for-400
    move-down
for-500
    move-right
for-70
    open-right
    move-right
""")
