#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ar[301], mx = 0, mxp;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &ar[i]);
  }
  for (int i = 0; i < n; i++) {
    if (ar[i] > 0) {
      while (ar[i] != 0) {
        cout << "P";
        ar[i]--;
        if (i != 0)
          cout << "LR";
        else
          cout << "RL";
      }
    }
    if (ar[i] == 0 && i != n - 1) cout << "R";
  }
  return 0;
}
