#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int w[n];
  vector<char> inst;
  for (int i = 0; i < n; i++) cin >> w[i];
  for (int i = 0; i < n - 1; i++) {
    for (int j = 0; j < w[i] - 1; j++) cout << "PRL";
    if (w[i] != 0) cout << "P";
    cout << "R";
  }
  for (int j = 0; j < w[n - 1] - 1; j++) cout << "PLR";
  if (w[n - 1] != 0) cout << "P";
  cout << endl;
  return 0;
}
