n = int(input())
fibs = [1, 1]
while fibs[-1] + fibs[-2] <= 1000:
    fibs.append(fibs[-1] + fibs[-2])
name = ''
for i in range(1, n + 1):
    if i in fibs:
        name += 'O'
    else:
        name += 'o'
print(name)
