#include <bits/stdc++.h>
using namespace std;
char lr[1000005];
long long int arr[2000005];
int main() {
  scanf(" %s", lr);
  long long int ln = strlen(lr);
  long long int p, q;
  p = ln;
  q = ln;
  arr[ln] = ln;
  for (int i = ln - 2; i >= 0; i--) {
    if (lr[i] == 'r') {
      p--;
      arr[p] = i + 1;
    } else if (lr[i] == 'l') {
      q++;
      arr[q] = i + 1;
    }
  }
  for (int i = p; i <= q; i++) {
    printf("%lld\n", arr[i]);
  }
}
