n = int(input())

fib = [0 for _ in range(n)]
fib[0] = 1
fib[1] = 1

for i in range(2,n):
    fib[i] = fib[i-1] + fib[i-2]

print (fib)
name = ['x' for _ in range(n)]

for i in range(len(name)):
    if (i+1) in fib :
        name[i]='O'
    else :
        name[i]='o'
print(''.join(name))
