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