#include <bits/stdc++.h>
using namespace std;
int f[100001];
char ans[100001];
int i;
int n;
void fi(int x, int f[], int& dem) {
  f[1] = 1;
  f[2] = 2;
  i = 2;
  while (f[i] < x) {
    dem++;
    i++;
    f[i] = f[i - 1] + f[i - 2];
  }
}
int main() {
  int dem = 2;
  cin >> n;
  fi(n, f, dem);
  for (int i = 1; i <= dem; i++) {
    cout << f[i] << " " << endl;
  }
  for (int i = 1; i <= n; i++) {
    ans[i] = 'o';
  }
  for (int i = 1; i <= dem; i++) {
    ans[f[i]] = 'O';
  }
  for (int i = 1; i <= n; i++) cout << ans[i];
  return 0;
}
