
import java.util.Arrays;
import java.util.Scanner;

public class eleven {

	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int v = sc.nextInt();
		String sol = "";
		int a =1, b=1, c=0, count = 15;
		int[] x = new int[count];
		
		x[0] = 0;
		x[1] = 1;
		for (int i = 2; i <count; i++) {
			c = a + b;
			a = b;
			b = c;
			x[i] = c;
		}

		for (int i = 1; i < v; i++) {
			System.out.println(contains(x, i));
			if(contains(x, i)) {
				sol += "O";
			}
			else {
				sol += "o";
			}
		}
		
		System.out.println(sol);
	}

	private static boolean contains(int[] x, int i) {
		boolean result = false;

        for(int j : x){
            if(j == i){
                result = true;
                break;
            }
        }

        return result;
	}

}
