#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  char arr[n + 1];
  memset(arr, '0', sizeof(arr));
  int n1 = 1;
  int n2 = 1;
  if (n <= 2) {
    arr[1] = '1';
    arr[2] = '1';
  } else {
    int num = 0;
    arr[1] = '1';
    for (int i = 2; i <= n; i++) {
      num = n1 + n2;
      if (num > n) {
        break;
      }
      arr[num] = '1';
      n1 = n2;
      n2 = num;
    }
  }
  string str = "";
  for (int i = 1; i <= n; i++) {
    if (arr[i] == '1') {
      str += 'O';
    } else {
      str += 'o';
    }
  }
  cout << str << endl;
  return 0;
}
