#include <bits/stdc++.h>
using namespace std;
char str[1000005];
int a[1000005];
int main() {
  scanf("%s", str);
  int len = strlen(str);
  int cnt = 1;
  int right = len, left = 1;
  for (int i = 0; i < len; i++) {
    if (str[i] == 'l') {
      a[right] = cnt;
      cnt++;
      right--;
    }
    if (str[i] == 'r') {
      a[left] = cnt;
      cnt++;
      left++;
    }
  }
  for (int i = 1; i <= len; i++) {
    printf("%d\n", a[i]);
  }
  return 0;
}
