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