#include <bits/stdc++.h>
using namespace std;
int tab[342];
int is[342];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    tab[i] = a;
  }
  int cur = 0, count = 0;
  string s;
  for (int i = 0; i < n; i++) {
    while (is[i] != tab[i]) {
      if (i != n - 1) {
        s.push_back('P');
        s.push_back('R');
        s.push_back('L');
        is[i]++;
      } else {
        s.push_back('P');
        s.push_back('L');
        s.push_back('R');
        is[i]++;
      }
    }
    if (i != n - 1) {
      s.push_back('R');
      count++;
    }
  }
  cout << s << endl;
  return 0;
}
