#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
char s[maxn];
int main() {
  cin >> (s + 1);
  int len = strlen(s + 1);
  len -= 2;
  cout << 3 << endl;
  cout << "L" << ' ' << len + 1 << endl;
  cout << "R" << ' ' << len + 1 << endl;
  cout << "R" << ' ' << 2 * (len + 1) + 1 << endl;
  return 0;
}
