#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int m = 3;
  int b = 2;
  for (int i = 1; i <= n; i++) {
    if (i == 1) cout << "O";
    if (i == 2) cout << "O";
    if (i >= 3) {
      if (i == m) {
        m = m + b;
        b = i;
        cout << "O";
      } else
        cout << "o";
    }
  }
}
