#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000 + 5;
int arr[maxn];
int mark[maxn];
int main() {
  int n;
  cin >> n;
  memset(mark, 0, sizeof(mark));
  arr[1] = 1;
  arr[2] = 1;
  mark[1] = 1;
  int cnt = 2;
  for (int i = 3; i <= n; i++) {
    arr[i] = arr[i - 1] + arr[i - 2];
    cnt++;
    mark[arr[i]] = 1;
    if (arr[i] >= n) break;
  }
  for (int i = 1; i <= n; i++) {
    if (mark[i])
      cout << "O";
    else
      cout << "o";
  }
  return 0;
}
