n = int(input())

mask = [0] * n
mask[0] = 1

x1 = 1
x2 = 1
f = 0
while f <= n:
  f = x1 + x2
  if f >=(n+1): break

  mask[f-1] = 1
  x1 = x2
  x2 = f
  # print(f)

# print(mask)

s = ''
for i in range(n):
  if mask[i] == 1:
    s = s +'O'
  else:
    s = s + 'o'

print(s)