_fib_cache = {1: 1, 2: 1}
def mem_fib(n):
    result = _fib_cache.get(n)
    if result is None:
        result = mem_fib(n-2) + mem_fib(n-1)
        _fib_cache[n] = result
    return result
n = int(input())
mem_fib(n)
s = ''
for i in range(1,n+1):
  if i in _fib_cache.values():
    s+='O'
  else:
    s+='o'
print(s)