#include <bits/stdc++.h>
using namespace std;
void l() { cout << "LEFT" << endl; }
void r() { cout << "RIGHT" << endl; }
void p(char x) { cout << "PRINT " << x << endl; }
int n, k;
char s[1000];
int main() {
  cin >> n >> k;
  cin >> s;
  if (k - 1 < n - k) {
    for (int i = 1; i <= k - 1; i++) l();
    for (int i = 0; i < n; i++) {
      p(s[i]);
      if (i == n - 1)
        break;
      else
        r();
    }
  } else {
    for (int i = 1; i <= n - k; i++) r();
    for (int i = n - 1; i >= 0; i--) {
      p(s[i]);
      if (i == 0)
        break;
      else
        l();
    }
  }
  return 0;
}
