#include <bits/stdc++.h>
using namespace std;
int main() {
  int i;
  string s;
  cin >> s;
  int right = s.size() - 1;
  int left = 0;
  vector<int> ans;
  ans.resize(s.size());
  for ((i) = (0); (i) < (int)(s.size()); (i)++) {
    if (s[i] == 'l') {
      ans[right] = i + 1;
      right--;
    } else {
      ans[left] = i + 1;
      left++;
    }
  }
  for (__typeof((ans).begin()) it = (ans).begin(); it != (ans).end(); it++) {
    cout << *it << endl;
  }
  return 0;
}
