n=int(input())
a=1
b=1
lst=[1,1]
for i in range(2,n+1):
    a, b = b,a+b
    lst.append(b)
print(lst)
s=''
for i in range(1,n+1):
    if i in lst:
        s+="O"
        print(i)
    else:
        s+="o"
print(s)
