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