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