#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  cout << 3 << '\n';
  cout << 'L' << ' ' << 2 << '\n';
  cout << 'R' << ' ' << 2 << '\n';
  cout << 'R' << ' ' << 2 * s.size() - 1 << '\n';
}
signed main() {
  std ::ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long tt = 1;
  while (tt--) {
    solve();
  }
  return 0;
}
