def frameName(no_of_chars):
    if no_of_chars < 2:
        return 'O' * no_of_chars
    name = ['O'] + ['O'] + ['o'] * (no_of_chars - 2)
    f1, f2 = 1, 1
    
    
    while f1 + f2 <= no_of_chars:
        f3 = f1 + f2
        name[f3 - 1] = 'O'
        f2, f1 = f3, f2

    return ''.join(name)


no_of_chars = int(input())

print(frameName(no_of_chars))