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