#include <bits/stdc++.h>
using namespace std;
int n, k;
char A[105];
void solve() {
  if (k < n / 2) {
    while (k > 0) {
      k--;
      cout << "LEFT\n";
    }
    for (int i = 0; i < n - 1; i++) {
      cout << "PRINT " << A[i] << '\n';
      cout << "RIGHT\n";
    }
    cout << "PRINT " << A[n - 1] << '\n';
  } else {
    while (k < n - 1) {
      k++;
      cout << "RIGHT\n";
    }
    for (int i = n - 1; i > 0; i--) {
      cout << "PRINT " << A[i] << '\n';
      cout << "LEFT\n";
    }
    cout << "PRINT " << A[0] << '\n';
  }
}
int main() {
  cin >> n >> k;
  k--;
  cin >> A;
  solve();
  return 0;
}
