import java.io.*;
import java.util.*;

public class Test {

	public static void main(String args[]) throws IOException {
	   Scanner br=new Scanner(System.in);
	   int n=br.nextInt();
	   if(n==1)
	   System.out.println("O");
	   else if(n==2)
	   System.out.println("OO");
	   else
	   {
	    int n1=1;
	    int n2=1;
	    
	    for(int i=1;i<=n;i++)
	    {
	     int sum=n1+n2;
	     if(i==n1 || i==n2)
	     System.out.print("O");
	     else if(i==sum)
	     {
	      System.out.print("O");
	      n1=n2;
	      n2=sum;
	      }else
	      System.out.print("o");
	    }
	   }
	   
	}
}