#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int length = str.length();
  cout << 3 << endl;
  cout << "L 2" << endl;
  cout << "R 2" << endl;
  cout << "R " << 2 * length - 1 << endl;
  return 0;
}
