#include <bits/stdc++.h>
using namespace std;
int main() {
  char r = 'R', p = 'P', l = 'L';
  int n, i, wallet[305], count = 0;
  ;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> wallet[i];
    if (wallet[i]) count++;
  }
  while (count) {
    for (i = 0; i < n - 1; i++) {
      if (wallet[i]) {
        cout << p;
        if (--wallet[i] == 0) count--;
      }
      cout << r;
    }
    for (int i = n - 1; i > 0; i--) {
      if (wallet[i]) {
        cout << p;
        if (--wallet[i] == 0) count--;
      }
      cout << l;
    }
  }
  return 0;
}
