#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  vector<int> answer(S.size());
  int pl = 0, pr = S.size() - 1;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == 'l') {
      answer[pr] = i + 1;
      pr--;
    } else {
      answer[pl] = i + 1;
      pl++;
    }
  }
  for (int i = 0; i < answer.size(); i++) {
    cout << answer[i] << '\n';
  }
  return 0;
}
