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