#include <bits/stdc++.h>
int plan[305];
int done[305];
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> plan[i];
  while (plan[0] != done[0]) {
    cout << "RLP";
    done[0]++;
  }
  cout << "R";
  for (int i = 1; i < n; i++) {
    while (done[i] < plan[i]) {
      cout << "LRP";
      done[i]++;
    }
    if (i + 1 < n) {
      cout << "R";
    }
  }
  cout << endl;
  return 0;
}
