def fibonacci():
	a, b = 0, 1
	while True:
		yield b
		a, b= b, a + b


		
n = input()
if n >= 1 and n <= 1000:
	fib = fibonacci()
	man = [fib.next() for i in range(n)]
	nam = [a for a in range(1, n + 1)]

	s = ''
	if n == 2:
		print 'OO'
	else:
		for i in nam:
			if i in man:
				s = s + 'O'
			else:
				s = s + 'o'

print s
