#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    if (x == 0) {
      cout << (i < N - 1 ? "R" : "");
      continue;
    }
    cout << "P";
    for (int j = 0; j < x - 1; j++) cout << (i ? "LRP" : "RLP");
    if (i < N - 1) cout << "R";
  }
  cout << endl;
  return 0;
}
