n = int(input())
a = ''
b = 1
c = 1
f = [1,1]
m = max(f)
while m<=n:
  v = b + c
  b = c 
  c = v 
  f.append(v)
  m = v
  
for i in range(1,n+1):
  if i in f:
    a = a + "O"
  else:
    a = a + "o"
print(a)
