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