#include <bits/stdc++.h>
int main(int argc, char *argv[]) {
  int n, k, i;
  int len;
  char str[110];
  int ll, rr;
  while (scanf("%d%d", &n, &k) != EOF) {
    getchar();
    gets(str);
    len = strlen(str);
    ll = k - 1;
    rr = len - k;
    if (ll <= rr) {
      for (i = 0; i < ll; i++) {
        printf("LEFT\n");
      }
      for (i = 0; i < len; i++) {
        printf("PRINT %c\n", str[i]);
        if (i != len - 1) printf("RIGHT\n");
      }
    } else {
      for (i = 0; i < rr; i++) {
        printf("RIGHT\n");
      }
      for (i = len - 1; i >= 0; i--) {
        printf("PRINT %c\n", str[i]);
        if (i != 0) printf("LEFT\n");
      }
    }
  }
  return 0;
}
