#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n, k;
  string s;
  cin >> s;
  n = s.size();
  int a[1000001] = {0};
  int head = 0, end = n - 1;
  for (i = 0; i < n; ++i) {
    if (s[i] == 'l') {
      a[end] = i + 1;
      --end;
    } else {
      a[head] = i + 1;
      ++head;
    }
  }
  for (i = 0; i < n; ++i) cout << a[i] << endl;
  return 0;
}
