#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  long long flag = 1;
  for (long long i = 0; i < s.length() / 2; i++) {
    if (s[i] != s[s.length() - i - 1]) {
      flag = 0;
      break;
    }
  }
  if (flag)
    cout << "0" << endl;
  else {
    cout << "3" << endl;
    cout << "L 2" << endl;
    cout << "R 2" << endl;
    cout << "R " << (s.length() + 1 + (s.length() - 2)) << endl;
  }
}
