#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int low = 0, high = s.length() - 1;
  vector<int> ans(s.length());
  for (int i = (0); i < (s.length()); i++) {
    if (s[i] == 'l')
      ans[high--] = i;
    else
      ans[low++] = i;
  }
  for (int i = (0); i < (ans.size()); i++) cout << ans[i] + 1 << endl;
}
