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