#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, A;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> A;
    if (i == n) {
      while (A--) cout << "PLR";
      return 0;
    }
    while (A--) {
      cout << "PRL";
    }
    cout << "R";
  }
}
