#include <bits/stdc++.h>
using namespace std;
int a[310];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    while (cnt < i) {
      cout << 'R';
      cnt++;
    }
    for (int j = 0; j < a[i]; j++) {
      cout << 'P';
      if (i > 0)
        cout << "LR";
      else
        cout << "RL";
    }
  }
  cout << endl;
  return 0;
}
