#include <bits/stdc++.h>
using namespace std;
long long po(long long a, long long b) {
  long long res = 1;
  while (b) {
    if (b & 1) {
      res = (res * a) % 1000000007;
    }
    a = (a * a) % 1000000007;
    b = b / 2;
  }
  return res % 1000000007;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  {
    string s;
    cin >> s;
    long long f = 0;
    string ans = "";
    long long n = s.size();
    for (int i = 0; i < n; i++) {
      if (s[i] != s[n - i - 1]) {
        f = 1;
        break;
      }
    }
    if (!f)
      cout << 0 << "\n";
    else {
      string ans = s[1] + s;
      for (int i = n - 2; i >= 0; i--) {
        ans += s[i];
      }
      ans += s[1];
      cout << 3 << "\n";
      cout << "L" << ' ' << 2 << "\n";
      cout << "R"
           << " " << 2 << "\n";
      cout << "R"
           << " " << 2 * n - 1 << "\n";
    }
  }
  return 0;
}
