def fib(n):
    if(n==1 or n==2):
        return 1
    else:
        return fib(n-1)+fib(n-2)
 
n=int(input())
list=[]
for i in range(1,18):
    list.append(fib(i))
for i in range(1,n+1):
    if i in list:
        print('O',end="")
    else:
        print('o',end="")