#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  string s;
  cin >> s;
  string c(s);
  reverse(s.begin(), s.end());
  long long int flag = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] != c[i]) {
      flag = 1;
      break;
    }
  }
  if (flag == 0)
    cout << 0 << endl;
  else {
    cout << 3 << endl;
    long long int n = s.length();
    long long int o = 2 * n - 1;
    cout << "L"
         << " " << 2 << endl;
    cout << "R"
         << " " << 2 << endl;
    cout << "R"
         << " " << o << endl;
  }
}
