n=int(input())
f1=1
f2=1
fi=0
l=[1]
for i in range(1,n+1):
    if fi<n:
        fi=f1+f2
        f1=f2
        f2=fi
        l.append(fi)
#print(l)
for i in range(1,n+1):
    if i in l:
        print("O",end="")
    else:
        print("o",end="")
