#include <bits/stdc++.h>
using namespace std;
pair<int, int> a[1000005];
int main() {
  string s;
  cin >> s;
  int l = 1, r = s.length();
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'l') {
      a[i].first = r;
      r--;
    } else {
      a[i].first = l;
      l++;
    }
    a[i].second = i + 1;
  }
  sort(a, a + s.length());
  for (int i = 0; i < s.length(); i++) cout << a[i].second << "\n";
  return 0;
}
