#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  string res = "";
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < a[i]; j++) {
      res += 'P';
    }
    if (i < n - 1) res += 'R';
  }
  cout << res[0];
  for (int i = 1; i < res.size(); i++) {
    if (i < a[0] && res[i] == 'P' && res[i - 1] == 'P') {
      cout << "RL";
    } else if (res[i] == 'P' && res[i - 1] == 'P')
      cout << "LR";
    cout << res[i];
  }
  cout << endl;
}
