#include <bits/stdc++.h>
using namespace std;
int fib[30];
int main() {
  int a, b, c, d, i, j, k, pre, now, temp;
  cin >> a;
  pre = 1;
  now = 1;
  fib[now] = 1;
  for (i = 1; i <= 30; i++) {
    temp = pre + now;
    pre = now;
    if (temp > 1000) break;
    fib[temp] = 1;
    now = temp;
  }
  for (i = 1; i <= a; i++) {
    if (fib[i] == 1)
      cout << "O";
    else
      cout << "o";
  }
  return 0;
}
