#include <bits/stdc++.h>
using namespace std;
const double e = exp(1.0);
int main() {
  int n, k;
  while (scanf("%d%d", &n, &k) == 2) {
    string s;
    cin >> s;
    if (k == 1) {
      for (int i = 0; i < s.length(); i++) {
        cout << "PRINT " << s[i] << endl;
        if (i != s.length() - 1) cout << "RIGHT" << endl;
      }
    } else if (k == s.length()) {
      for (int i = s.length() - 1; i >= 0; i--) {
        cout << "PRINT " << s[i] << endl;
        if (i) cout << "LEFT" << endl;
      }
    } else if (k - 1 < s.length() - k) {
      for (int i = k - 1; i >= 0; i--) {
        cout << "PRINT " << s[i] << endl;
        if (i) cout << "LEFT" << endl;
      }
      for (int i = 0; i <= k - 1; i++) cout << "RIGHT" << endl;
      for (int i = k; i < s.length(); i++) {
        cout << "PRINT " << s[i] << endl;
        if (i != s.length() - 1) cout << "RIGHT" << endl;
      }
    } else {
      for (int i = k - 1; i < s.length(); i++) {
        cout << "PRINT " << s[i] << endl;
        if (i != s.length() - 1) cout << "RIGHT" << endl;
      }
      for (int i = s.length() - 1; i >= k - 1; i--) cout << "LEFT" << endl;
      for (int i = k - 2; i >= 0; i--) {
        cout << "PRINT " << s[i] << endl;
        if (i) cout << "LEFT" << endl;
      }
    }
  }
  return 0;
}
