#include <bits/stdc++.h>
using namespace std;
void solve();
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
  cerr << "time taken : " << (float)clock() / CLOCKS_PER_SEC << " secs" << endl;
  return 0;
}
void solve() {
  string s;
  cin >> s;
  long long n = s.size();
  cout << 3 << endl;
  cout << "R " << n - 1 << endl;
  cout << "L " << n << endl;
  cout << "L " << 2 << endl;
  return;
}
