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