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