#include <bits/stdc++.h>
using namespace std;
int n, a[311];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n - 1; i++) {
    while (a[i] > 0) {
      cout << "PRL";
      a[i]--;
    }
    cout << "R";
  }
  while (a[n - 1] > 0) {
    cout << "PLR";
    a[n - 1]--;
  }
}
