#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  string s;
  cin >> s;
  long long n = (long long)(s).size();
  cout << 3 << endl;
  cout << "L " << 2 << endl;
  n++;
  cout << "R " << 2 << endl;
  n += (n - 2);
  cout << "R " << n - 1 << endl;
}
