#include <bits/stdc++.h>
int main() {
  int n, i, j = 2, k;
  scanf("%d", &n);
  char str[n];
  str[0] = 'O';
  str[1] = 'O';
  str[2] = 'O';
  for (i = 4; i < n; i = i + j) {
    str[i] = 'O';
    j = (j * 2) - 1;
  }
  for (i = 3; i < n; i++) {
    if (str[i] != 'O') str[i] = 'o';
  }
  str[n] = '\0';
  printf("%s", str);
  return 0;
}
