#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  int t = 0;
  string c = "";
  cin >> n;
  cin >> t;
  for (int i = 0; i < t; i++) {
    c = c.append("PRL");
  }
  c = c.append("R");
  for (int i = 0; i < n - 2; ++i) {
    cin >> t;
    for (int i = 0; i < t; i++) {
      c = c.append("LRP");
    }
    c = c.append("R");
  }
  cin >> t;
  for (int i = 0; i < t; i++) c = c.append("LRP");
  cout << c;
}
