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

def onestep(direction):
    p("move-down move-{0} move-up move-{0}".format(direction))

p("for-176")

p("for-350")
onestep("right")
p("end")
p("move-down move-right move-down if-ok move-left else move-up endif")
p("for-350")
onestep("left")
p("end")
p("move-down move-down")

p("end")
