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