#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(228);
const double EPS = 1e-7;
const double PI = acos(-1);
void solve();
signed main() {
  ios_base::sync_with_stdio(false);
  solve();
  exit(0);
}
void solve() {
  string second;
  cin >> second;
  int n = (int)second.size();
  cout << 6 << '\n';
  cout << "L 2\n";
  n++;
  cout << "L 2\n";
  n++;
  cout << "R " << n - 1 << '\n';
  n++;
  cout << "R " << n - 1 << '\n';
  n++;
  cout << "R 2" << '\n';
  n += n - 2;
  cout << "R " << n - 1;
}
