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