#include <bits/stdc++.h>
using namespace std;
const int nax = 1e7;
const int mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  long long int n = s.length();
  cout << 3 << endl;
  cout << "L " << 2 << endl;
  cout << "R " << 2 << endl;
  cout << "R " << 2 * n - 1 << endl;
}
