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