#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  map<int, bool> mp;
  mp[1] = 1;
  mp[2] = 1;
  int ara[39];
  ara[1] = 1;
  ara[2] = 1;
  for (int i = 3;; i++) {
    ara[i] = ara[i - 1] + ara[i - 2];
    if (ara[i] > 1000) break;
    mp[ara[i]] = 1;
  }
  cin >> n;
  string s = "";
  for (int i = 1; i <= n; i++) {
    if (mp[i])
      s += 'O';
    else
      s += 'o';
  }
  cout << s << endl;
}
