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