See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).
none
none
print('''
for-60
	for-15 
		move-down 
		move-right
		if-ok break else continue endif
	end
	for-250
		for-15
			take
			open-up
			move-up
			move-right
			if-ok break else continue endif
		end
		for-15
			take
			open-down
			move-down
			move-right
			if-ok break else continue endif
		end
	end
	move-right
	for-15
		take
		open-up
		move-up
		if-ok continue else break endif
	end
	for-15 
		move-down 
		if-ok continue else break endif
	end
	move-left
	for-250
		for-15 
			move-up 
			move-left
			if-ok break else continue endif
		end
		for-15
			move-down 
			move-left
			if-ok break else continue endif
		end
	end
end
for-440 move-right end
for-61 open-right move-right end
''')