#include <bits/stdc++.h>
int a[300], n;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  if (a[0]) printf("P");
  for (int i = 1; i < a[0]; i++) printf("RLP");
  for (int j = 1; j < n; j++) {
    printf("R");
    if (a[j]) printf("P");
    for (int i = 1; i < a[j]; i++) printf("LRP");
  }
  printf("\n");
  return 0;
}
