#include <bits/stdc++.h>
using namespace std;
string l(string s, int x) {
  string t = s.substr(1, x - 1);
  reverse(t.begin(), t.end());
  cout << t + s << endl;
  return t + s;
}
string r(string s, int x) {
  string t = s.substr(x - 1, s.size() - x);
  reverse(t.begin(), t.end());
  cout << s + t << endl;
  return s + t;
}
int main(void) {
  string s;
  cin >> s;
  int n = s.length();
  cout << 3 << endl;
  cout << "L 2" << endl;
  cout << "R 2" << endl;
  cout << "R " << n * 2 - 1 << endl;
}
