class eleven:
    def __init__(self, n):
        self.n = n
        self.printName(self.n)

    def printName(self, n):
        list1 = [0, 1]
        f0 = 0
        f1 = 1
        for x in range(0, n):
            f2 = f0 + f1
            list1.append(f2)
            f0 = f1
            f1 = f2
        print(list1)
        for x in range(1, n+1):
            if x in list1:
                print('O', end="")
            else:
                print("o", end="")


n = int(input())
if(1 <= n and n <= 1000):
    pass
else:
    exit()

elevenObj = eleven(n)
