#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  long long n;
  cin >> str;
  n = (long long)str.length();
  cout << "4\n";
  cout << "R 2\n";
  cout << "L 2\n";
  cout << "R 2\n";
  cout << "R " << (4 * n) - 5 << '\n';
  return 0;
}
