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