#include <bits/stdc++.h>
using namespace std;
int l, r, i, n, a[301];
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) cin >> a[i];
  for (i = 1; i <= n; i++) {
    l = i;
    r = i + 1;
    if (a[l] <= 0 && r <= n) cout << "R";
    if (r <= n)
      while (a[l] > 0) {
        cout << "PR";
        a[l]--;
        if (a[l] == 0) break;
        cout << "L";
      }
    if (r == n + 1)
      while (a[l] > 0) {
        cout << "P";
        a[l]--;
        if (a[l] == 0) break;
        cout << "LR";
      }
  }
  return 0;
}
