#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr),
      nullptr;
  ;
  string s;
  cin >> s;
  long long n = s.length();
  cout << 3 << "\n";
  cout << "L 2\n";
  cout << "R 2\n";
  cout << "R " << 2 * n - 1 << "\n";
}
