#include <bits/stdc++.h>
int main() {
  int n;
  int i, j;
  char c[2000];
  while (scanf("%d", &n) != EOF) {
    memset(c, 'o', n * sizeof(char));
    for (i = 1, j = 1; i < n || j < n;) {
      c[i - 1] = 'O';
      c[j - 1] = 'O';
      i = j + i;
      j = j + i;
    }
    for (i = 0; i < n; i++) printf("%c", c[i]);
    printf("\n");
  }
  return 0;
}
