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