See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
dirs = ["up", "right", "down", "left"]

print("""
for-100000
    for-100000
        move-left
        if-ok
        else
            break
        endif
    end
    for-100000
        move-down
        if-ok
        else
            break
        endif
    end
    for-100000
        move-right
        if-ok
        else
            break
        endif
    end
    for-100000
        move-up
        if-ok
        else
            break
        endif
    end
end
""")