#include <bits/stdc++.h>
using namespace std;
int n;
int k, c, l = 1;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    if (i <= 3) {
      cout << 'O';
      continue;
    }
    if (c == 1) {
      cout << 'O';
      c = 0;
      continue;
    }
    if (c == 0) {
      cout << 'o';
      k++;
      if (k == l) {
        c = 1;
        k = 0;
        l *= 2;
      }
      continue;
    }
  }
}
