#include <bits/stdc++.h>
using namespace std;
static const double EPS = 1e-8;
static const double PI = 4.0 * atan(1.0);
bool ISINT(double x) { return fabs(x - (int)round(x)) < EPS; }
bool ISEQ(double x, double y) { return fabs(x - y) < EPS; }
string itos(long long x) {
  stringstream ss;
  ss << x;
  return ss.str();
}
int n;
int a[302];
int dx[] = {1, -1};
string dch[] = {"R", "L"};
int main(void) {
  while (cin >> n) {
    int sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    int dir = 0;
    int x = 0;
    while (sum > 0) {
      if (a[x] > 0) {
        cout << "P";
        a[x]--;
        sum--;
      }
      int nx = x + dx[dir];
      if (nx < 0 || n <= nx) {
        dir = !dir;
        nx = x + dx[dir];
      }
      cout << dch[dir];
      x = nx;
    }
    cout << endl;
  }
}
