import java.util.*;
import java.math.*;

public class cf {
    static boolean[] fib;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        fib = new boolean[1001];
        String str = "";

        fib[0] = true;
        fib[1] = true;
        fib[2] = true;

        getFib(n);

        for(int i=0;i<n;i++) {
            if(fib[i]) str += "O";
            else str += "o";
        }

        System.out.println(str);
    }
    public static void getFib(int n) {
        int a = 1;
        int b = 1;
        int c;
        for(int i=2;i<n;i++) {
            c = a + b;
            a = b;
            b = c;
            if(c > n) return;
            fib[c-1] = true;
        }
    }
}