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