n = int(input().strip())
if n == 1:
    print('O')
elif n == 2:
    print('OO')
else:
    f = [0] * (n+1)
    f[1], f[2] = 1, 1
    fd = {1:True}
    name = ''
    i = 3
    while i <= n and f[i] <= n:
        f[i] = f[i-1] + f[i-2]
        fd[f[i]] = True
        i += 1
    for i in range(1, n+1):
        name += 'O' if i in fd else 'o'
    print(name)
