#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int len = s.length();
  int l = 0, r = len - 1, arr[len], k = 1;
  for (int i = 0; i < len; i++) {
    if (s[i] == 'l') {
      arr[r] = k;
      r--;
    } else {
      arr[l] = k;
      l++;
    }
    k++;
  }
  for (int i = 0; i < len; i++) printf("%d\n", arr[i]);
  return 0;
}
