#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  vector<int> arr;
  arr.assign(n, -1);
  int begin_latest, end_latest, begin, end;
  begin = begin_latest = end_latest = 0;
  end = n - 1;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'l') {
      arr[end - end_latest] = i + 1;
      end_latest++;
    } else {
      arr[begin + begin_latest] = i + 1;
      begin_latest++;
    }
  }
  for (int i = 0; i < n; i++) cout << arr[i] << "\n";
  return 0;
}
