l = []

s = ""

n = int(input())
a, b = 1,1
l.append(a)
l.append(b)
count = 0
while count < n-2:
    c = a + b
    a = b
    b = c
    count+=1
    if c <= n:
        l.append(c)
#print(l)
if len(l) == 2:
    print("OO")
elif len(l) == 1:
    print("O")
else:
    for i in range(1,n+1):
        if i in l:
            #print(type(i))
            s = s+"O"
        else:
            s = s+"o"
#print(l2)
print(s)
