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