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