import java.util.Scanner;

public class Eleven {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int a,n,i,j,count;
        boolean is;
        int[] arr = new int[1003];
        while (input.hasNext()) {
            count = 2;is = false;
            n = input.nextInt();
            arr[0] = 1;
            arr[1] = 2;
            for (i = 2;; i++) {
                arr[i] = arr[i-2] + arr[i-1];
                if(arr[i]>n)
                    break;
                count++;
            }

            for(i=1;i<=n;i++){
                for(j=0;j<count;j++){
                    if(arr[j]==i){
                        is = true;
                        break;
                    }
                }
                if(is==true) {
                    System.out.print("O");
                    is = false;
                }
                else System.out.print("o");
            }
            System.out.println();
        }
    }

}
