import java.util.*;

public class Solution {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		Set<Integer> fib = new HashSet<>();
		fib.add(1);
		int fn_2 = 1;
		int fn_1 = 1;
		int fn = 1;
		while(fn < n) {
			fn = fn_2 + fn_1;
			fib.add(fn);
			fn_2 = fn_1;
			fn_1 = fn;
		}
		StringBuilder result = new StringBuilder();
		for(int i = 1; i <= n; i++) {
			result.append(fib.contains(i) ? "O" : "o");
		}
		System.out.println(result);
	}
}