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