#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a;
    for (int j = 1; j <= a; j++) {
      cout << "P";
      if (i != 1)
        cout << "LR";
      else
        cout << "RL";
    }
    if (i != n) cout << "R";
  }
}
