#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:667177216")
const long long mod = 1000000007;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  string s = "";
  vector<int> fib(2000);
  fib[0] = 1, fib[1] = 1;
  for (int i = 0; i < n; i++) {
    s += "o";
  }
  for (int i = 2; i < 40; i++) {
    fib[i] = fib[i - 1] + fib[i - 2];
  }
  for (int i = 0; i < 40; i++) {
    if (fib[i] <= n) s[fib[i] - 1] = 'O';
  }
  for (int i = 0; i < n; i++) {
    cout << s[i];
  }
  return 0;
}
