#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  cout << "4\n";
  cout << "L 2\n";
  cout << "R " << s.size() << '\n';
  cout << "L " << s.size() + 1 << '\n';
  cout << "L 2\n";
  return 0;
}
