n=int(input())
c=0
a=1
b=0
lst=[]
str1=""
for i in range(n):
    c=a+b
    a=b
    b=c
    lst.append(c)
if (n==2):
    print("OO")
elif (n==3):
    print("OOO")
else:
    for i in range(n+1):
        if i in lst:
            str1+="O"
        else:
            str1+="o"
    print(str1.lstrip("o"))