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