#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int arr[n];
  for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
  string str = "";
  for (int i = 0; i < n; i++) {
    if (arr[i] == 0) {
      if (i == n - 1) break;
      str += 'R';
      continue;
    } else {
      for (int j = 1; j <= arr[i] - 1; j++) {
        if (i == 0)
          str += "PRL";
        else
          str += "PLR";
      }
      str += 'P';
    }
    if (i != n - 1) str += 'R';
  }
  cout << str;
}
