#include <bits/stdc++.h>
#pragma GCC optimize(2)
#pragma GCC optimize(3)
using namespace std;
const int mod = 1e9 + 7;
const int maxx = 1e6 + 10;
using namespace std;
const long double PI = 3.14159265358979323846;
signed main() {
  string ss;
  cin >> ss;
  int n = ss.size();
  cout << 3 << endl;
  cout << "L"
       << " " << 2 << endl;
  cout << "R"
       << " " << 2 << endl;
  cout << "R " << 2 * n - 1 << endl;
  return 0;
}
