#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    string s;
    cin >> s;
    cout << 3 << endl;
    cout << "L " << s.length() - 1 << endl;
    cout << "R " << s.length() - 1 << endl;
    cout << "R " << 2 * s.length() - 1 << endl;
  }
  return 0;
}
