#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1234567;
const int MOD = 1e9 + 7;
int arr[333];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) cin >> arr[i];
  for (int j = 0; j < N; j++) {
    if (arr[j] > 0)
      while (arr[j] > 0) {
        cout << "P";
        arr[j]--;
        if (arr[j] == 0) {
          if (j + 1 < N) cout << "R";
          break;
        }
        if (j - 1 >= 0) {
          cout << "L";
          cout << "R";
        } else {
          cout << "R";
          cout << "L";
        }
      }
    else if (j + 1 < N) {
      cout << "R";
    }
  }
  return 0;
}
