#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 1e5 + 5;
const long long mod = 1e9 + 7;
long long pw(long long b, long long r, long long md = mod) {
  b = b % mod;
  r = r % mod;
  long long ans = 1;
  while (r) {
    if (r & 1) ans = (ans * b) % md;
    b = (b * b) % md;
    r >>= 1;
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    string s;
    cin >> s;
    long long n = s.length();
    cout << 3 << '\n';
    cout << "R " << n - 1 << '\n';
    cout << "L " << n << '\n';
    cout << "L " << 2 << '\n';
  }
  return 0;
}
