import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Eleven {
	public static ArrayList<Integer> fibs = new ArrayList<Integer>(Arrays.asList(1,1));
	public static void fibonacci () {
		for (int i=2; i<1000; i++) {
			fibs.add(fibs.get(i-1)+fibs.get(i-2));
		}
	}
	static class Solution {
		public static void main(InputStream is, OutputStream os) {
			PrintWriter pw = new PrintWriter(os);
			Scanner sc = new Scanner(is);
			int n = sc.nextInt();
			fibonacci();
			String out = "";
			for (int i=1; i<=n; i++) {
				if (fibs.contains(i)) {
					out += "O";
				}
				else {
					out += "o";
				}
			}
			pw.println(out);
			System.out.println(fibs.toString());
			pw.close();
			sc.close();
		}
	}
	public static void main (String[] args) {
		Solution.main(System.in, System.out);
	}
}