#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n;
  string s;
  cin >> s;
  n = s.size();
  int a[n], mn = 0, mx = n - 1;
  for (i = 0; i < s.size(); i++) {
    if (s[i] == 'l') {
      a[mx] = i + 1;
      mx = mx - 1;
    } else if (s[i] == 'r') {
      a[mn] = i + 1;
      mn = mn + 1;
    }
  }
  for (i = 0; i < n; i++) {
    cout << a[i] << endl;
  }
  return 0;
}
