import java.util.Scanner;

public class Codeforces918A {
	public static void main(String args[]){
	//String result = "";
	char result[] = new char[2000];
	int n, i,a=0,b=1,c=1,index=0;
	int arr[] = new int[2000];
	Scanner in = new Scanner(System.in);
	n = in.nextInt();
	
	for(i=0;i<n;i++){
		result[i]='-';
	}
	
	//result[c-1]='O';
	while(c <=n){
		//arr[index++]=c;
		result[c-1]='O';
		a=b;
		b=c;
		c=a+b;
	}
	
	for(i=0;i<n;i++){
		if(result[i]=='-')
			result[i]='o';
		System.out.println(result[i]);
	}
	
	
	in.close();
	 
	
	

}
}
