n=int(input())

term = [0]*1000
def fib(n):
  if n <= 1:
    return n
  if term[n] != 0:
    return term[n]
  else:
    term[n] = fib(n - 1) + fib(n - 2)
    return term[n]

f_s=[]

for i in range(1,n+1):
    f_s.append(fib(i))
print(f_s)

ans=["o"]*n

for i in f_s:
    if i<=n:
        ans[i-1]="O"
print(''.join(ans)) 

