#include <bits/stdc++.h>
using namespace std;
long long GCD(long long u, long long v) {
  long long r;
  while (v) {
    r = u % v;
    u = v;
    v = r;
  }
  return u;
}
long long modpow(long long a, long long p, long long mod) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = (ret * a) % mod;
    a = (a * a) % mod;
    p /= 2;
  }
  return ret;
}
long long power(long long a, long long p) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = (ret * a);
    a = (a * a);
    p /= 2;
  }
  return ret;
}
int a[311];
int main() {
  int i, j, tmp;
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n;
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  string s;
  i = 0;
  while (1) {
    if (a[i] && i) {
      if (a[i]) {
        a[i]--;
        s += "P";
      }
      s += "L";
      if (a[i - 1]) {
        a[i - 1]--;
        s += "P";
      }
      s += "R";
    } else if (a[i] && i != n - 1) {
      if (a[i] == 1) {
        s += "PR";
        a[i]--;
        i++;
      } else {
        a[i]--;
        if (a[i + 1]) {
          a[i + 1]--;
          s += "PRPL";
        } else
          s += "PRL";
      }
    } else if (!a[i]) {
      i++;
      s += "R";
    }
    int f = 1;
    for (j = 0; j < n; j++)
      if (a[j]) f = 0;
    if (f) break;
  }
  cout << s << endl;
  return 0;
}
