import java.io.*;
import java.util.*;
public class GFG {
    static int[] b;
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
	int a;
	a=in.nextInt();
    int[] x =new int[10000];
    int[] y =new int[10000];
    int c=1,b=1;
   x[0]=1;
    x[1]=1;
    y[1]=1;
    for(int i=2;i<=a;i++){
        
        x[i]=x[i-1]+x[i-2];
        y[x[i]]=1;
        
        System.out.println(x[i]);
        
        if(x[i]>1050){
            break;
        }
    }
   // System.out.println(y[2]);
    b=1;c=0;
    String name="";
    while(b<=a){
        if(y[b]==1){
            name+="O";
           
            b++;
        }
        else{
            name+="o";
            b++;
        }
    }
     System.out.println(name);
 }
 

}





