n = int(input())
list = [1, 2]
s = ['o' for i in range(0, n)]
f1 = list[0]
f2 = list[1]
while f2 + f1 <= 1000:
    f = f2 + f1
    list.append(f)
    f1 = f2
    f2 = f
for item in list:
    if item <= n:
        s[item - 1] = 'O'
for item in s:
    print(item, end='')