#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  vector<int> l, r;
  for (int i = 0; i < (int)s.size(); ++i) {
    if (s[i] == 'l') {
      l.push_back(i + 1);
    }
    if (s[i] == 'r') {
      r.push_back(i + 1);
    }
  }
  for (auto i : r) {
    cout << i << "\n";
  }
  for (int i = (int)(l.size()) - 1; i >= 0; --i) {
    cout << l[i] << "\n";
  }
  return 0;
}
