#include <bits/stdc++.h>
using namespace std;
template <class T>
inline T gcd(T a, T b) {
  while (b) {
    a = a % b;
    swap(a, b);
  }
  return a;
}
inline int ri() {
  int aaa;
  scanf("%d", &aaa);
  return aaa;
}
inline long long int rl() {
  long long int aaa;
  scanf("%lld", &aaa);
  return aaa;
}
inline double dxt() {
  double aaa;
  scanf("%lf", &aaa);
  return aaa;
}
int a[1010];
int main() {
  long long int n = rl();
  int sum = 1;
  int old = 0;
  string res = "";
  for (int i = 1; i <= n; i++) {
    if (n > sum) {
      int temp = sum;
      sum += old;
      old = temp;
      a[sum] = 1;
    }
    if (a[i] == 1) {
      res += "O";
    } else {
      res += "o";
    }
  }
  cout << res << endl;
  cin >> n;
  return 0;
}
