from __future__ import print_function
num = int(raw_input())
lookup = [None]*30

def fib(n, lookup):
    if n == 0 or n == 1:
        lookup[n] = n
    
    if lookup[n] is None:
        lookup[n] = fib(n-1, lookup) + fib(n-2, lookup)
        
    return lookup[n]

fib(20,lookup)

for i in range(1,num+1):
    if i in lookup:
        print("O",end="")
    else:
        print("o",end="")
