# -*- coding: utf-8 -*-
"""
Created on Sat Oct 31 18:41:24 2020

@author: user

Question : https://codeforces.com/problemset/problem/918/A
"""

def fib(n):
    x = []
    if n == 1 or n == 2:
        return 1
    else:
        return(fib(n-2)+fib(n-1))

x = []       
n = int(input(""))
name = ''
for i in range(1,18):
    x.append(fib(i))
for i in range(1,n+1):
    if i in x:
        name = name + "O"
    else:
          name = name + "o"
print(name)