#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v;
  while (n--) {
    int x;
    cin >> x;
    v.push_back(x);
  }
  for (int i = 0; i < v.size(); ++i) {
    if (v[i] == 0 && i != v.size() - 1) {
      cout << 'R';
    } else {
      while (v[i]) {
        if (i == 0) {
          cout << "PRL";
        } else {
          cout << "PLR";
        }
        v[i]--;
      }
      if (i != v.size() - 1) cout << 'R';
    }
  }
  cout << endl;
  return 0;
}
