import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int[] f = new int[1005];
        boolean[] vis = new boolean[1005];
        f[1] = f[2] = 1;
        vis[1] = true;
        for (int i = 3; ; i++) {
            f[i] = f[i - 1] + f[i - 2];
            if (f[i] >= 1000) break;
            vis[f[i]] = true;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 1; i <= n; i++) {
            sb.append(vis[i] ? 'O' : 'o');
        }
        System.out.println(sb.toString());
    }
}

 		   			   		    		    			 	