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

	move-right
 	if-ok
 		for-1000
 			move-right
 		end
 	else 
 	endif

	move-up
 	if-ok
 		for-1000
 			move-up
 		end
 	else 
 	endif
 end
")