#include <bits/stdc++.h>
using namespace std;
int main() {
  string str = "";
  int n, sum = 0;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  int i = 0;
  for (int i = 0; i < n; i++) {
    if ((i == 0) && (arr[i] > 0))
      while (arr[0] > 0) {
        str += "RLP", arr[0]--;
      }
    else if (arr[i] > 0)
      while (arr[i] > 0) {
        str += "LRP", arr[i]--;
      }
    if (i != n - 1) str += 'R';
  }
  cout << str;
}
