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