#include <bits/stdc++.h>
const char en = '\n';
using namespace std;
int main() {
  int n;
  cin >> n;
  int a;
  cin >> a;
  for (int j = 1; j <= a; j++) cout << "PRL";
  for (int i = 1; i < n; i++) {
    int a;
    cin >> a;
    cout << "R";
    for (int j = 1; j <= a; j++) cout << "PLR";
  }
  cout << endl;
}
