#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b[3000] = {0}, c, d = 0, e = 0, f, g, h, j = 0, k = 0, l, i;
  cin >> a;
  for (i = 1; i <= a; i++) {
    cin >> b[i];
  }
  while (j < a - 1) {
    j++;
    while (b[j] > 0) {
      cout << "RLP";
      b[j]--;
    }
    cout << "R";
  }
  while (b[a] > 0) {
    cout << "LRP";
    b[a]--;
  }
  return 0;
}
