#include <bits/stdc++.h>
using namespace std;
int n, a[500];
void put(int i) {
  for (int t = 1; t <= a[i]; t++) cout << "LRP";
  if (i < n) cout << "R";
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int j = 1; j <= a[1]; j++) cout << "RLP";
  cout << "R";
  for (int i = 2; i <= n; i++) put(i);
}
