#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1.1E6;
char A[MAXN];
int main(void) {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int testCase = 1;
  while (testCase--) {
    cin >> (A + 1);
    int n = strlen(A + 1);
    cout << "3\nL ";
    cout << n - 1 << "\nR ";
    cout << n - 1 << "\nR ";
    cout << 2 * n - 1 << '\n';
  }
  return 0;
}
