#include <bits/stdc++.h>
using namespace std;
int main() {
  queue<int> wallets;
  int numWallet, amount;
  scanf("%d", &numWallet);
  for (int i = 0; i < numWallet; i++) {
    scanf("%d", &amount);
    wallets.push(amount);
  }
  for (int pos = 0; wallets.empty() == 0; wallets.pop(), pos++) {
    for (; wallets.front() > 0; wallets.front()--) {
      printf("P");
      if (wallets.front() > 1) {
        if (pos == 0) {
          printf("RL");
        } else {
          printf("LR");
        }
      }
    }
    if (pos < (numWallet - 1)) printf("R");
  }
  printf("\n");
  return 0;
}
