#include <bits/stdc++.h>
int n, i, x, z;
int main() {
  scanf("%d %d", &n, &x);
  while (x > 1) {
    printf("PRL");
    x--;
  }
  if (x == 1) printf("P");
  for (i = 2; i <= n; i++) {
    scanf("%d", &x);
    printf("R");
    while (x > 1) {
      printf("PLR");
      x--;
    }
    if (x == 1) printf("P");
  }
  return 0;
}
