import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Set<Integer> se = new HashSet<>();
		int f1 = 1, f2 = 1;
		se.add(1);
		while (f2 <= 1000) {
			int temp = f1;
			f1 = f2;
			f2 = temp + f1;
			se.add(f2);
		}
		for (int i = 1; i <=n; i++) {
			System.out.print(se.contains(i) ? "O" : "o");
		}
		System.out.println();
	}
}