#include <bits/stdc++.h>
using namespace std;
vector<int> v;
string s1;
int main() {
  cin >> s1;
  for (int i = 0; i < s1.size(); i++) {
    if (s1[i] == 'r') {
      printf("%d\n", i + 1);
    } else {
      v.push_back(i + 1);
    }
  }
  for (int i = v.size() - 1; i >= 0; i--) {
    printf("%d\n", v[i]);
  }
  return 0;
}
