
n = int(input())

dic = {1:0,}

n1 = 1
n2 = 1

for i in range(0,n-2):
    res = n1 +n2
    dic[res] = 0
    n1=n2;
    n2=res

print(dic)

str = ""
for i in range(1,n+1):
    if i in dic:
       str = str + "O"
    else:
        str = str + "o"



print(str)