#include <bits/stdc++.h>
using namespace std;
bool fun(string s, long long n) {
  long long l = 0, h = n - 1;
  while (l < h) {
    if (s[l] != s[h]) return false;
    l++;
    h--;
  }
  return true;
}
void solve() {
  string s;
  cin >> s;
  long long n = s.length();
  if (fun(s, n)) {
    cout << "0" << '\n';
  } else {
    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(NULL);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
