#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long l;
  string s;
  cin >> s;
  l = s.size();
  cout << 4 << endl;
  cout << "R " << 2 << endl;
  l += l - 2;
  cout << "R " << l - 1 << endl;
  l++;
  cout << "L " << l - 1 << endl;
  l += l - 2;
  cout << "L " << 2 << endl;
}
