#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
set<long long> st;
long long a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, x, y, z, sz, sm,
    mx, mn, ln, ar[500005 + 2], cnt;
int main() {
  while (cin >> n) {
    f = 1;
    for (i = 1; i <= n; i++) {
      cin >> ar[i];
    }
    if (ar[1]) {
      cout << "P";
      for (j = 0; j < ar[1] - 1; j++) {
        cout << "RL";
        cout << "P";
      }
      cout << "R";
    } else
      cout << "R";
    for (i = 2; i <= n; i++) {
      if (ar[i]) {
        cout << "P";
        for (j = 0; j < ar[i] - 1; j++) {
          cout << "LR";
          cout << "P";
        }
        if (i != n) cout << "R";
      } else if (i != n)
        cout << "R";
    }
    cout << endl;
  }
  return 0;
}
