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