#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int main() {
  string s;
  cin >> s;
  int n = s.size();
  cout << "3\nL 2\nR 2\nR " << 2 * n - 1 << "\n";
  return 0;
}
