def fibo(n):
    if n<=1:
        return 1
    else:
        return fibo(n-1)+fibo(n-2)


n = int(input())
#print(fibo(n))
l = [fibo(i) for i in range(1,n+1)]
for i in range(1,n+1):
    if i in l:
        print('O')
    else:
        print('o')

