n=int(input())
l=['o']*(n+1)
i=1
l[1]='O'
if n>1:
      
      l[2]='O'
a=1
b=2
while 1:
      #print(a,b,i)
      i=a+b
      if i>n:
            break
      l[a]='O'
      l[b]='O'
      l[i]='O'
      a=b
      b=i
#print(*l)
l.pop(0)
print(''.join(l))
