#include <bits/stdc++.h>
using namespace std;
const int N = 500;
int a[N];
int main() {
  srand(time(NULL));
  int n;
  cin >> n;
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  int i = 1;
  string s = "";
  while (sum > 0 && i <= n) {
    if (a[i] > 0) {
      if (i == 1) {
        int j = 1;
        while (a[i] > 0) {
          s += "P";
          a[i]--;
          sum--;
          if (a[i] == 0) break;
          s += "R";
          j++;
          if (a[j] > 0) {
            s += "P";
            a[j]--;
            sum--;
          }
          s += "L";
          j--;
        }
        continue;
      }
      while (a[i] > 0) {
        s += "P";
        a[i]--;
        sum--;
        if (a[i] == 0) break;
        s += "LR";
      }
    }
    if (i < n) {
      i++;
      s += "R";
    }
  }
  cout << s;
  return 0;
}
