See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print('''for-41
	for-15
		move-down
		move-right
	end
	for-250
		take
		for-12
			move-up
			take
			open-up
		end
		move-right
		for-12
			move-down
			take
			open-down
		end
		move-right
	end
	for-249
		move-left
		for-12
			move-up
		end
		move-left
		for-12
			move-down
		end
	end
	move-left
end
move-down
move-down
for-499
	open-right
	move-right
end''')