#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ara[n], sizeA = 2;
  if (n > 1) {
    ara[0] = 1;
    ara[1] = 1;
  } else
    ara[0] = 1;
  for (int i = 2; n >= sizeA; i++) {
    ara[i] = ara[i - 1] + ara[i - 2];
    sizeA++;
    if (ara[i] >= n) break;
  }
  string s = "OO";
  int counter = 3;
  for (int i = 3; i <= n; i++) {
    if (i == ara[counter]) {
      s = s + "O";
      counter++;
    } else
      s = s + "o";
  }
  if (n > 1)
    cout << s << ara[3];
  else if (n == 1)
    cout << "O";
  return 0;
}
