#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  for (int i = 0; i < (int)str.length(); ++i) {
    if (str[i] == 'r') cout << i + 1 << "\n";
  }
  for (int i = (int)str.length() - 1; i >= 0; i--) {
    if (str[i] == 'l') cout << i + 1 << "\n";
  }
}
