def fibonacci(n):
    if n == 1 or n == 2:
        return 1
    else:
        return( fibonacci( n-1 ) + fibonacci( n-2) )

n = int(input())
i = 1
c = 1
Fibo = []
while c <= n:
    i += 1
    Fibo.append(c)
    c = fibonacci(i)
# print(Fibo)
Fibo = set(Fibo)
ans = ""
for i in range(1, n+1):
    if i in Fibo:
        ans += "O"
    else:
        ans += "o"

print(ans)