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