#include <bits/stdc++.h>
using namespace std;
int f[1000];
int main() {
  f[1] = 1;
  f[2] = 1;
  for (int i = 2; i < 900; i++) f[i] = f[i - 1] + f[i - 2];
  char s[1200];
  memset(s, 'o', sizeof(s));
  for (int i = 1; f[i] < 1200; i++) s[f[i]] = 'O';
  int n;
  while (cin >> n) {
    s[n] = 0;
    printf("%s\n", s + 1);
  }
}
