#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed;
  cout << setprecision(10);
  string s;
  cin >> s;
  long long x = s.length() - 2;
  cout << 3 << "\n";
  cout << "L " << x + 1 << "\n";
  long long len = s.length() + x;
  cout << "R " << len - x - 1 << "\n";
  len += x + 1;
  cout << "R " << len - x << "\n";
  return 0;
}
