#include <bits/stdc++.h>
using namespace std;
int a[100000], n;
void move(int x) {
  if (x == n - 1)
    printf("LR");
  else
    printf("RL");
}
void coin() { printf("P"); }
int main() {
  scanf("%d", &n);
  for (int i = 0, _n = n; i < _n; i++) scanf("%d", a + i);
  int curr = 0;
  while (curr < n) {
    while (a[curr] > 0) {
      coin();
      move(curr);
      a[curr]--;
    }
    if (curr < n - 1) printf("R");
    curr++;
  }
  printf("\n");
  return 0;
}
