#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 7;
void solve() {
  string s;
  cin >> s;
  long long n = s.size();
  cout << 3 << "\n";
  cout << "R " << n - 1 << "\n";
  cout << "L " << n << "\n";
  cout << "L 2"
       << "\n";
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t = 1;
  for (long long i = 1; i <= t; i++) {
    solve();
  }
  return 0;
}
