#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  list<int> a(1, 1);
  list<int>::iterator l = a.begin();
  for (int i = 0; i < s.length() - 1; ++i) {
    if (s[i] == 'r') ++l;
    a.insert(l, i + 2);
    --l;
  }
  stringstream ss;
  for (list<int>::iterator i = a.begin(); i != a.end(); ++i) ss << *i << "\n";
  cout << ss.str();
  return 0;
}
