#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  bool ok = true;
  for (int i = 0; i < n / 2; i++) {
    if (s[i] != s[n - i - 1]) {
      ok = false;
      break;
    }
  }
  if (ok) {
    cout << 0 << "\n";
    return 0;
  }
  cout << 3 << "\nL 2\nR 2\n"
       << "R " << 2 * n - 1 << "\n";
  return 0;
}
