#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[300];
  for (int i = 0; i < n; i++) cin >> a[i];
  int max = a[0];
  for (int i = 1; i < n; i++)
    if (a[i] > max) max = a[i];
  string str = "";
  for (int i = 0; i < max; i++) {
    for (int j = 0; j < n - 1; j++)
      if (a[j] > 0) {
        cout << "PR";
        a[j]--;
      } else
        cout << 'R';
    for (int j = n - 1; j > 0; j--)
      if (a[j] > 0) {
        cout << "PL";
        a[j]--;
      } else
        cout << 'L';
  }
  return 0;
}
