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

steps = [9, 12, 11, 9, 13, 9, 12, 8, 11, 9, 10, 9, 10, 9, 13, 12, 8, 8, 12, 12, 13, 10, 11, 11, 10, 10, 10, 9, 9, 9, 13, 8, 8, 8, 13, 11, 9, 12, 9, 12, 6]
for step in steps:
    print(template.format(step))

print("""for-510
move-down
end
for-510
move-right
end""")
