#include <bits/stdc++.h>
using namespace std;
map<long long int, long long int> mp, mk;
set<long long int> s1, s2;
vector<int> v, w;
string s = "", qq = "", ss = "", pp = "", p, q;
char ch;
long long int m, n, i, j, l, r, x, t, y, u, g, h, mn, mx, d, z, c, f, e, k;
int main() {
  cin >> n;
  for (i = 0; i < n; i++) {
    if (i) cout << 'R';
    cin >> x;
    while (x) {
      if (i && n > 1)
        cout << "LR";
      else if (!i && n > 1)
        cout << "RL";
      cout << 'P';
      x--;
    }
  }
}
