q=int(input())
def feb(q):
    m=1
    s=0
    while m<=q and s<=q:
        if q==m or q==s:
            return True
        else:
            s=s+m
            if q == m or q == s:
                return True
            m=m+s
    return False
for i in range(1,q+1):
    if feb(i):
        print('O',end='')
    else:
        print('o',end='')