#include <bits/stdc++.h>
using namespace std;
int arr[100005];
int arr2[100005];
string str, str1;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, cnt = 0, ans = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> arr[i];
    ans += arr[i];
  }
  for (int i = 1; i <= n; i++) {
    if (i == n) {
      while (arr[i] > arr2[i]) {
        str += 'P';
        arr2[i]++;
        str += "LR";
      }
    } else {
      while (arr[i] > arr2[i]) {
        str += 'P';
        arr2[i]++;
        str += "RL";
      }
      str += 'R';
    }
  }
  cout << str << endl;
}
