#include <bits/stdc++.h>
using namespace std;
mt19937 rng(
    (unsigned int)chrono::steady_clock::now().time_since_epoch().count());
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long int n;
  string s;
  cin >> s;
  n = s.length();
  cout << 3 << "\n";
  cout << "L 2"
       << "\n";
  cout << "R 2"
       << "\n";
  n *= 2;
  cout << "R " << n - 1 << "\n";
}
