#include <bits/stdc++.h>
using namespace std;
inline void boost() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
}
vector<char> ans;
int n, a[303];
void solve() {
  int i = 1;
  while (i <= n) {
    if (a[i] == 0) {
      if (i + 1 > n) break;
      ans.push_back('R');
      i++;
      continue;
    } else {
      ans.push_back('P');
      a[i]--;
      if (a[i] == 0) {
        if (i + 1 > n) break;
        ans.push_back('R');
        i++;
        continue;
      }
      if (i - 1 < 1) {
        ans.push_back('R');
        if (a[i + 1] > 0) {
          ans.push_back('P');
          a[i + 1]--;
        }
        ans.push_back('L');
      } else {
        ans.push_back('L');
        ans.push_back('R');
      }
    }
  }
  while (ans.back() != 'P') ans.pop_back();
  return;
}
int main() {
  boost();
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  solve();
  for (int i = 0; i < (int)ans.size(); i++) cout << ans[i];
  return 0;
}
