#include <bits/stdc++.h>
using namespace std;
template <typename T, typename G>
void dd(map<T, G> &v) {
  for (const auto &i : v) cout << i.first << " " << i.second << endl;
  cout << endl;
}
template <typename T>
void dd(set<T> &v) {
  for (const auto &i : v) cout << i << " ";
  cout << endl;
}
template <typename T, typename G>
void dd(vector<pair<T, G>> &v) {
  for (const auto &i : v) cout << i.first << " " << i.second << endl;
  cout << endl;
}
template <typename T>
void dd(vector<vector<T>> &v) {
  long long c = 0;
  for (const auto &i : v) {
    cout << c << " : ";
    for (const auto &j : i) cout << j << " ";
    cout << endl;
    c++;
  }
  cout << endl;
}
template <typename T>
void dd(vector<T> v[], long long n) {
  for (long long i = 0; i < n; i++) {
    cout << i << " : ";
    for (const auto &j : v[i]) cout << j << " ";
    cout << endl;
  }
  cout << endl;
}
template <typename T>
void dd(vector<T> &v) {
  for (const auto &i : v) cout << i << " ";
  cout << endl;
}
template <typename T>
void dd(T a[], T n) {
  for (long long i = 0; i < (int32_t)n; i++) cout << a[i] << " ";
  cout << endl;
}
template <typename T>
void in(vector<T> &v) {
  for (long long i = 0; i < (int32_t)v.size(); i++) cin >> v[i];
}
template <typename T>
void dd(T x) {
  cout << x << endl;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  dd(3);
  dd("L " + to_string(s.length() - 1));
  dd("R " + to_string(s.length() - 1));
  dd("R " + to_string(2 * s.length() - 1));
  return 0;
}
