
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Scanner;

public class Main {
	
	private static final int MAX_N = 1000;
	private static List<Integer> f = new ArrayList<Integer>();

	public static void main(String args[]) {
		f.add(1);
		f.add(2);
		while (true) {
			int length = f.size();
			int next = f.get(length - 1) + f.get(length - 2);
			if (next <= MAX_N) {
				f.add(next);
			} else {
				break;
			}
		}
		
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		Iterator<Integer> it = f.iterator();
		int pre = it.next();
		while (true) {
			System.out.print('O');
			int next = it.next();
			int toPrint = Math.min(n, next);
			for (int i = pre ; i < toPrint - 1 ; i++) {
				System.out.print('o');
			}
			if (next > n) {
				break;
			}
			pre = next;
		}
		System.out.println();
	}
}
