#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int i;
  int arr[] = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987};
  char str[1001];
  for (i = 0; i < 1000; i++) str[i] = 'o';
  for (i = 0; i <= 15; i++) str[arr[i] - 1] = 'O';
  for (i = 0; i < n; i++) cout << str[i];
  cout << endl << i;
  return 0;
}
