
import java.util.ArrayList;
import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author anhnth37
 */
public class A_0918 {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        ArrayList<Integer> a = new ArrayList<>();
        if (n <= 3) {
            for (int i = 0; i < n; i++) {
                System.out.println("O");
            }
        } else {
            System.out.println("OOO");
            for (int i = 4; i <= n; i++) {
                int fib = fibonacci(i);
                if (fib <= n) {
                    a.add(fib);
                } else {
                    break;
                }
            }

            for (int i = 4; i <= n; i++) {
                int index = a.indexOf(i);
                if (index >= 0) {
                    System.out.print("O");
                } else {
                    System.out.print("o");
                }
            }
        }
    }

    public static int fibonacci(int n) {
        if (n < 0) {
            return -1;
        } else if (n == 0 || n == 1) {
            return n;
        } else {
            return fibonacci(n - 1) + fibonacci(n - 2);
        }
    }
}
