#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n + 5];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  int i = 0;
  while (i != n) {
    if (arr[i] > 0) {
      cout << "P";
      arr[i] -= 1;
    }
    if (arr[i] > 0) {
      while (arr[i]--) {
        if (i + 1 != n)
          cout << "RL";
        else {
          cout << "LR";
        }
        cout << "P";
      }
    }
    if (i != (n - 1)) {
      cout << "R";
    }
    i += 1;
  }
  cout << endl;
  return 0;
}
