#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n >= 1 && n <= 1000) {
    int d[n + 1];
    d[1] = 1;
    d[2] = 1;
    for (int i = 3; i <= n; i++) d[i] = d[i - 1] + d[i - 2];
    for (int i = 1; i <= n; i++) {
      int a = 0;
      for (int j = 1; j <= n; j++) {
        if (i == d[j]) {
          a = 1;
          continue;
        }
      }
      if (a)
        cout << "O";
      else
        cout << "o";
    }
  }
  return 0;
}
