#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  int sum = 0;
  for (int i = int(0); i <= int((n)-1); i++) cin >> a[i];
  for (int i = int(0); i <= int((n)-1); i++) sum += a[i];
  int cur = 0, next;
  while (sum--) {
    next = -1;
    for (int i = cur - 1; i >= 0; i--) {
      if (a[i] > 0) {
        next = i;
        i = -1;
      }
    }
    if (next < 0) {
      for (int i = cur + 1; i < n; i++) {
        if (a[i] > 0) {
          next = i;
          i = n;
        }
      }
    }
    if (next == -1) {
      if (cur == 0)
        printf("RLP");
      else
        printf("LRP");
      a[cur]--;
    } else if (cur < next) {
      while (cur != next) {
        putchar('R');
        cur++;
      }
      putchar('P');
      a[cur]--;
    } else {
      while (cur != next) {
        putchar('L');
        cur--;
      }
      putchar('P');
      a[cur]--;
    }
  }
  puts("");
}
