#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
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(false);
  cin.tie(nullptr);
  long long t = 1;
  while (t--) solve();
  return 0;
}
