#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	if(n==1){cout << "O" << endl;return 0;}
	else if(n==2){cout << "OO" << endl;return 0;}
	else
	{
		int fib[n+1]={0};
		fib[1] = 1;
		fib[2] = 1;
		int i = 3;
		while(i<=n)
		{
			fib[i] = fib[i-1]+fib[i-2];
			i++;
		}
		for(int i = 1;i<=n;i++)
		{
			int c = count(fib,fib+n,i);
			if(c>0)
			{
				cout << "O";
			}else
			{
				cout << "o";
			}
		}
		cout << endl;
	}
	return 0;
}