#include <bits/stdc++.h>
using namespace std;
void yeah() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  long long t = 1;
  while (t--) {
    string s;
    cin >> s;
    cout << 4 << '\n';
    int n = s.length();
    cout << "R 2" << '\n';
    n += s.length() - 2;
    cout << "L 2" << '\n';
    n++;
    cout << "R 2" << '\n';
    n += n - 2;
    cout << "R " << n - 1 << '\n';
  }
}
