See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print('''
for-499
	move-right

	if-ok
		for-249
			for-99
				take
				if-ok break else endif
				move-up
			end

			for-99
				move-up
				if-ok else open-up break endif
			end

			for-99
				move-up
				if-ok else break endif
			end

			move-right

			for-99
				take
				if-ok break else endif
				move-down
			end

			for-99
				move-down
				if-ok else open-down break endif
			end

			for-99
				move-down
				if-ok else break endif
			end

			move-right
		end

		for-99
			take
			if-ok break else endif
			move-up
		end

		for-99
			move-up
			if-ok else open-up break endif
		end

		for-99
			take
			if-ok break else endif
			move-up
		end

		for-99
			take
			if-ok break else endif
			move-up
		end

		for-249
			for-99
				move-down
				if-ok else break endif
			end

			move-left

			for-99
				move-up
				if-ok else break endif
			end

			move-left
		end

		for-99
			move-down
			if-ok else break endif
		end

		move-left
		move-down
	else
		move-down
	endif
end

for-438
	move-right
end

for-61
	open-right
	move-right
end
''')