#include <bits/stdc++.h>
using namespace std;
int ar[1005];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &ar[i]);
  }
  int pos = 1;
  while (pos < n) {
    if (ar[pos] == 0) printf("R");
    while (ar[pos] > 0) {
      printf("P");
      ar[pos]--;
      printf("R");
      if (ar[pos] == 0) break;
      printf("L");
    }
    pos++;
  }
  while (ar[pos] > 0) {
    printf("P");
    ar[pos]--;
    if (ar[pos] == 0) break;
    printf("L");
    printf("R");
  }
  printf("\n");
  return 0;
}
