#include <bits/stdc++.h>
using namespace std;
string s;
int arr[1000000];
int n;
int cmp(const void* a, const void* b) {
  int x = *(int*)a;
  int y = *(int*)b;
  return x - y;
}
int main() {
  cin >> s;
  n = 1000000;
  int start = 0;
  int end = 1;
  int num = 1;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'r') {
      arr[start] = num;
      start++;
    } else {
      arr[n - end] = num;
      end++;
    }
    num++;
  }
  for (int i = 0; i < start; i++) {
    cout << arr[i] << endl;
  }
  for (int k = n - end + 1; k < n; k++) {
    cout << arr[k] << endl;
  }
  return 0;
}
