#include <bits/stdc++.h>
using namespace std;
const long long inf = 0x3f3f3f3f3f3f3f3f;
long long dx[] = {0, 1, 1, 1, 0, -1, -1, -1};
long long dy[] = {1, 1, 0, -1, -1, -1, 0, 1};
void print(vector<long long> &v) {
  for (long long i = 0; i < v.size(); i++) cout << v[i] << " ";
  cout << '\n';
}
long long func() { return 1; }
void solve(long long n) {
  func();
  func();
  func();
  cout << 4 << '\n';
  cout << "L"
       << " " << n - 1 << '\n';
  cout << "L " << 2 * n - 3 << '\n';
  cout << "R " << 2 * n - 3 << '\n';
  cout << "R " << 4 * n - 5 << '\n';
  func();
  func();
  func();
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    string s;
    cin >> s;
    long long n = s.size();
    solve(n);
  }
  return 0;
}
