#Eleven

n = int(input())

a = 1

b = 1

c = a + b

l = []

l.append(a)

l.append(b)

while(c <= n):
    c = a + b
    l.append(c)
    a = b
    b = c
print(l)

k = []

for x in range(1, n + 1):
    if(l.count(x)):
        k.append("O")
    else:
        k.append("o")
print(k)        
    
