#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> s;
  long long n = s.length();
  s = " " + s;
  cout << "3\nR " << n - 1 << "\nL " << n << "\nL " << 2 << endl;
}
