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