#include <bits/stdc++.h>
const int INF = (int)1e9;
const long long INF64 = (long long)1e18;
const long double eps = 1e-9;
const long double pi = 3.14159265358979323846;
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> st;
  int tmp;
  string re = "";
  for (int i = (0), _end = (n); i < _end; ++i) {
    cin >> tmp;
    st.push_back(tmp);
  }
  for (int i = 0; i < n; i += 2) {
    int tmp[2] = {0, 0};
    if (i == n - 1) {
      i--;
      tmp[0] = st[i];
      re += "L";
    }
    int ok1 = 0, ok2 = 0;
    while (tmp[0] < st[i] || tmp[1] < st[i + 1]) {
      if (tmp[0] < st[i]) {
        re += "P";
        tmp[0]++;
        if (tmp[0] == st[i] && tmp[1] == st[i + 1]) {
          ok1 = 1;
          break;
        }
      }
      re += "R";
      if (tmp[1] < st[i + 1]) {
        re += "P";
        tmp[1]++;
        if (tmp[0] == st[i] && tmp[1] == st[i + 1]) {
          ok2 = 1;
          break;
        }
      }
      re += "L";
    }
    if (ok2)
      re += "R";
    else if (ok1)
      re += "RR";
    else if (!ok1 && !ok2)
      re += "RR";
  }
  for (int i = re.length() - 1; i >= 0; i--) {
    if (re[i] != 'P')
      re.erase(re.begin() + i);
    else
      break;
  }
  cout << re << endl;
  return 0;
}
