#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long double eps = 1e-9;
const long long maxn = 1e5 + 1;
const long long inf = LLONG_MAX;
const long long minf = LLONG_MIN;
bool solve() {
  string s;
  cin >> s;
  long long n = s.size();
  cout << 3 << "\n";
  cout << "L " << n - 1 << "\n";
  cout << "R " << n - 1 << "\n";
  cout << "R " << 2 * n - 1 << "\n";
  return true;
}
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    if (solve()) {
    } else {
    }
  }
  return 0;
}
