import sys

#sys.stdin = open('data/a.1.in', 'r')

fibs = set([1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597])

n = input()
c = ''
for _ in xrange(1, n+1):
    c += 'O' if _ in fibs else 'o'
print c