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