#include <bits/stdc++.h>
using namespace std;
int ans[1000005];
int main() {
  char s[1000005];
  scanf("%s", &s);
  int n = strlen(s), left = 0, right = n - 1;
  for (typeof(0) i = (0); i < (n); ++i) {
    if (s[i] == 'l')
      ans[right] = i + 1, right--;
    else
      ans[left] = i + 1, left++;
  }
  for (typeof(0) i = (0); i < (n); ++i) printf("%d\n", ans[i]);
  return 0;
}
