def fib(n):
    if(n <= 1):
        return n
    else:
        return(fib(n - 1) + fib(n - 2))
k = int(input())
if(k == 1):
    print('O')
    exit()
a = []
for i in range(1, k):
    if(fib(i) > k):
        break
    a.append(fib(i))
a = list(set(a))
# print(a)
a = [a[i] - 1 for i in range(len(a))]
# print(a)
l = ['o']* k
for i in range(len(l)):
    if(i in a):
        l[i] = 'O'
print(''.join(l))        
    