#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int p;
  p = 1;
  while (p--) {
    long long int a, b, c, d, e;
    string A;
    cin >> A;
    cout << 3 << endl;
    cout << "R"
         << " " << A.length() - 1 << endl;
    cout << "L"
         << " " << A.length() << endl;
    cout << "L"
         << " " << 2 << endl;
  }
}
