#include <bits/stdc++.h>
using namespace std;
template <class T>
inline long long gcd(T x, T y);
int a[400];
int main() {
  int n, i, j;
  cin >> n;
  for (i = 1; i <= n; ++i) cin >> a[i];
  for (j = 1; j <= a[1]; ++j) cout << "PRL";
  for (i = 2; i < n; ++i) {
    cout << "R";
    for (j = 1; j <= a[i]; ++j) cout << "PLR";
  }
  cout << "R";
  for (j = 1; j <= a[n]; ++j) cout << "PLR";
  return 0;
}
template <class T>
inline long long gcd(T x, T y) {
  if (!y) return x;
  return gcd(y, x % y);
}
