n = int(input())
f1=1
f2=1
fn=0
seq=[]

if n==1:
    seq.append(f1)
else:
    seq.append(f1)
    seq.append(f2)
    while(fn < n):
        fn = f1+f2
        f1=f2
        f2=fn
        seq.append(fn)
str=' '
for i in range(1,n+1):
    if i in seq:
        str +=''.join('O')
    else:
        str +=''.join('o')