#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  stack<int> left, right;
  int i = 0;
  while (s[i] != '\0') {
    if (s[i] == 'l')
      right.push(i + 1);
    else
      left.push(i + 1);
    i++;
  }
  while (!left.empty()) {
    right.push(left.top());
    left.pop();
  }
  while (!right.empty()) {
    printf("%d\n", right.top());
    right.pop();
  }
  return 0;
}
