#include <bits/stdc++.h>
using namespace std;
int ci[305];
char str[1000000];
int main() {
  int n, cnt = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> ci[i];
  for (int i = 0; i < n - 1; i++) {
    while (ci[i]--) {
      str[cnt++] = 'P';
      str[cnt++] = 'R';
      str[cnt++] = 'L';
    }
    str[cnt++] = 'R';
  }
  while (ci[n - 1]--) {
    str[cnt++] = 'P';
    str[cnt++] = 'L';
    str[cnt++] = 'R';
  }
  str[cnt] = 0;
  cout << str;
}
