#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int fib1 = 2, fib2 = 3;
  int fib;
  cout << "OOO";
  for (int i = 4, a = 1; i <= n; i++) {
    fib = fib1 + fib2;
    if (fib == i) {
      cout << "O";
      if (a % 2 == 0)
        fib2 = fib;
      else
        fib1 = fib;
      a++;
    } else {
      cout << "o";
    }
  }
  return 0;
}
