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