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