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