#!/usr/bin/python3

import sys, math

def fib_formula(n):
    golden = (1+math.sqrt(5)) / 2
    val = (golden**n - (1-golden)**n) / math.sqrt(5)
    return int(round(val))

fib = [fib_formula(x) for x in range(1, 20)]

a = int(sys.stdin.readline())

s = [] 

for i in range(1, a+1):
    if i in fib:
        s.append("O")
    else: s.append("o")

print(''.join(s))

sys.exit()
