#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long w = 0, f = 1;
  char c = ' ';
  while (c < '0' || c > '9') c = getchar(), f = c == '-' ? -1 : f;
  while (c >= '0' && c <= '9') w = w * 10 + c - 48, c = getchar();
  return w * f;
}
long long read01() {
  char c = getchar();
  while (c != '0' && c != '1') c = getchar();
  return c == '1';
}
char a[100005];
signed main() {
  scanf("%s", a);
  long long n = strlen(a);
  printf("3\nR %lld\nL %lld\nL %lld", n - 1, n, 2ll);
  return 0;
}
