#include <bits/stdc++.h>
using namespace std;
const long long int mxn = 1e5 + 7;
const long long int mxn1 = 1e9 + 8;
int n, a[mxn];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (int i = 1; i <= n; i++) {
    if (a[i] == 0 && i != n) {
      cout << 'R';
      continue;
    }
    while (a[i] > 1) {
      if (i == n) {
        cout << 'P' << 'L' << 'R';
        a[i]--;
        continue;
      }
      cout << 'P' << 'R' << 'L';
      a[i]--;
    }
    if (a[i] == 1) {
      cout << "P";
      a[i]--;
    }
    if (a[i] == 0 && i != n) {
      cout << 'R';
      continue;
    }
  }
}
