n = int(input())

fib = []
if n==1:
    print('O')
else:
    fib = [1,1]
    i=2
    while True:
        if fib[i-1]+fib[i-2] <= n:
            fib.append(fib[i-1]+fib[i-2])
            i+=1
        else:
            break
    
    for i in range(1,n+1):
        if i in fib:
            print('O', end="")
        else:
            print('o', end="")