#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int* arr = new int[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n - 1; i++) {
    if (arr[i] > 0) {
      cout << "PR";
      arr[i]--;
    } else {
      cout << "R";
      continue;
    }
    while (arr[i] > 0) {
      cout << "LPR";
      arr[i]--;
    }
  }
  while (arr[n - 1] > 0) {
    cout << "P";
    arr[n - 1]--;
    if (arr[n - 1] > 0) {
      cout << "LR";
    }
  }
  return 0;
}
