#include <bits/stdc++.h>
using namespace std;
string s;
int a[1000010];
int main() {
  cin >> s;
  int i = 0;
  int j = s.length() - 1;
  for (int k = 0; k < s.length(); k++)
    if (s[k] == 'l')
      a[j--] = k + 1;
    else
      a[i++] = k + 1;
  for (int k = 0; k < s.length(); k++) printf("%d\n", a[k]);
}
