fibs = [0, 1, 1]

while True:
    now = fibs[-2] + fibs[-1]
    if now > 1000:
        break
    fibs.append(now)

df = {}
for elem in fibs:
    df[elem] = True

N = input()
res = []
for i in xrange(N):
    if i+1 in df:
        res.append('O')
    else:
        res.append('o')

print ''.join(res)