#include <bits/stdc++.h>
using namespace std;
int aaa[300];
int main() {
  memset(aaa, 0, sizeof(aaa));
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> aaa[i];
  for (int i = 0; i < n - 1; i++) {
    for (int j = 0; j < aaa[i]; j++) cout << "PRL";
    cout << "R";
  }
  for (int i = 0; i < aaa[n - 1]; i++) cout << "PLR";
  cout << endl;
  return 0;
}
