#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    int x;
    vector<int> vec;
    for (int i = 0; i < n; i++) {
      cin >> x;
      vec.push_back(x);
    }
    int *a = new int[n];
    for (int i = 0; i < n; i++) a[i] = 0;
    for (int i = 0; i < n; i++) {
      bool bo = true;
      while (a[i] < vec[i]) {
        a[i]++;
        if (i < n - 1) {
          cout << "P";
          if (a[i] < vec[i])
            cout << "RL";
          else {
            cout << "R";
            bo = false;
            break;
          }
        } else {
          cout << "P";
          if (a[i] < vec[i])
            cout << "LR";
          else {
            cout << "L";
            bo = false;
            break;
          }
        }
      }
      if (!bo) continue;
      if (i < n - 1) {
        cout << 'R';
      } else {
        cout << 'L';
      }
    }
    cout << endl;
  }
  return 0;
}
