#include <bits/stdc++.h>
int i, j, k, l, m, n;
int a[301];
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; i++) scanf("%d", &a[i]);
  k = 1;
  for (i = 1; i < n; i++) {
    while (a[i] != 0) {
      printf("%PR");
      k++;
      l += 2;
      a[i]--;
      if (a[i + 1] != 0) {
        printf("P");
        a[i + 1]--;
        l++;
      }
      if (a[i] != 0) {
        printf("L");
        l++;
        k--;
      }
    }
    if (k == i) {
      printf("R");
      l++;
      k++;
    } else {
      printf("LR");
      l += 2;
    }
  }
  while (a[n] != 0) {
    printf("LRP");
    l += 3;
    a[n]--;
  }
  printf("\n");
  return 0;
}
