import java.util.Scanner;

public class codeforce {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt() - 3;
        System.out.print("OOO");
        int count = n;
        boolean flag = false;
        int i = 0;
        while (i<=n){
            for (int j = 0; j <= i*i && j<=n; j++) {
                System.out.print("o");
                n--;
            }
            if(n!=0){
                System.out.print("O");
                n--;
            }
            i++;
        }
    }
}
