#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int siz1 = str.size(), i = 0;
  while (i < siz1) {
    if (str[i] == 'r') cout << i + 1 << endl;
    i++;
  }
  i = 0;
  while (i < siz1) {
    if (str[siz1 - i - 1] == 'l') cout << siz1 - i << endl;
    i++;
  }
  return 0;
}
