
import sys
import os
import math
import re

fib = {} 

def add((a, b, c), (x, y, z)):
    v = a * y + b * z
    w = b * y + c * z
    return (w - v, v, w)

def fib2(n):
    if fib.get(n) is not None:
        return fib[str(n)]
    (r, p) = ((1, 1, 2), (0, 1, 1))
    while not(n == 0):
        if n % 2: r = add(r, p)
        p = add(p, p)
        n = n >> 1
    fib[n] = r[0]
    return r[0]

n = int(input())

for i in xrange(1001):
    fib[i] = fib2(i)

printMe =''

for j in xrange(1,n+1):
    if j in fib.values():
        printMe += 'O'
    else:
        printMe += 'o'
    

print printMe

