import java.util.*;
public class issam{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String s = new String();
        s = "O";
        for(int i=1;i<n;i++){
            s += "o";
        }
        int a=1,b=1,c=2;
        while(c<=n){
            if(c==n) {
                s = s.substring(0,n-1)+"O";
            }
            s = s.substring(0,c-1)+"O"+s.substring(c,n);
            a=b;
            b=c;
            c=a+b;
        }
        System.out.println(s);
    }
}