#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, tmp;
  while (scanf("%d", &n) != EOF) {
    for (i = 0; i < n; i++) {
      scanf("%d", &tmp);
      if (i) printf("R");
      for (j = 0; j < tmp; j++) {
        printf("P");
        if (i)
          printf("LR");
        else
          printf("RL");
      }
    }
    printf("\n");
  }
  return 0;
}
