import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        fib(n);
    }

    public static boolean psquare(int x){
        int sq = (int) Math.sqrt(x);
        return (sq * sq == x);
    }

    public static boolean isfib(int x){
        return psquare(5 * x * x + 4) || psquare(5 * x * x - 4);
    }
    public static int fib(int n){
        int f1 = 1;
        int f2 = 1;
        int fn = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 1; i < n; i++){
            if (isfib(i)){
                sb.append('O');
            } else {
                sb.append('o');
            }
        }
        System.out.println((sb.toString()));
        return fn;
    }
}

								  		  	 		  	 	 		 	 	