#include <bits/stdc++.h>
int main(void) {
  int n, a;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    if (i != 1) printf("R");
    scanf("%d", &a);
    while (a) {
      printf("P");
      a--;
      if (a && i > 1)
        printf("LR");
      else if (a)
        printf("RL");
    }
  }
  printf("\n");
  return 0;
}
