#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 50;
char s[maxn];
int main() {
  cin >> s + 1;
  int len = strlen(s + 1);
  int sign = 1;
  for (int i = 1; i <= len / 2; i++) {
    if (s[i] != s[len - i + 1]) {
      sign = 0;
      break;
    }
  }
  if (sign) {
    cout << 0 << endl;
    return 0;
  } else {
    cout << 3 << endl;
    cout << 'L' << ' ' << 2 << endl;
    len++;
    cout << 'R' << ' ' << 2 << endl;
    len += len - 2;
    cout << 'R' << ' ' << len - 1 << endl;
  }
  return 0;
}
