#include <bits/stdc++.h>
using namespace std;
const int maxN = 300 * 10 + 100;
long long n, arr[maxN];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n - 1; i++) {
    if (arr[i] >= 1) {
      cout << "P";
      if (arr[i] >= 2)
        for (int j = 1; j < arr[i]; j++) cout << "RLP";
    }
    cout << "R";
  }
  if (arr[n - 1] >= 1) {
    cout << "P";
    if (arr[n - 1] > 1)
      if (arr[n - 1] >= 2)
        for (int j = 1; j < arr[n - 1]; j++) cout << "LRP";
  }
  cout << endl;
  return 0;
}
