#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  long long n = s.length();
  cout << 3 << '\n';
  cout << "R " << n - 1 << '\n';
  cout << "L " << n << '\n';
  cout << "L 2";
}
