n=int(input())
f=[0,1,1]
up=[False]*1010
up[1]=up[2]=True
m = f[-1] + f[-2]
while m<=1000:
    #print('m='+str(m))
    f.append(m)
    up[m]=True
    m=f[-1]+f[-2]
c=[]
for i in range(1,n+1):
    if up[i]:
        c.append('O')
    else:
        c.append('o')
print(''.join(c))

