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