n = int(input())
fibonacci_numbers = [1,2]
for i in range(2,700):
    fibonacci_numbers.append(fibonacci_numbers[i-1]+fibonacci_numbers[i-2])
print('OO',end='')    
for i in range(3,n+1):
    if i in fibonacci_numbers:
        print ('O', end='')
    else:
        print('o', end='')    
