#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> wallets;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    wallets.push_back(a);
  }
  string s;
  for (int i = 0; i < wallets.size() - 1; ++i) {
    while (wallets[i]) {
      s.append("RLP");
      wallets[i]--;
    }
    s.push_back('R');
  }
  while (wallets[n - 1]) {
    s.append("PLR");
    wallets[n - 1]--;
  }
  cout << s;
  return 0;
}
