#include <bits/stdc++.h>
using namespace std;
int myabs(int a) {
  if (a > 0)
    return a;
  else
    return -a;
}
char dir[1000001];
int prefix[1000001];
int suffix[1000001];
int main() {
  cin >> dir;
  int j = 0;
  for (int i = 0; dir[i] != '\0'; i++) {
    if (dir[i] == 'r') {
      cout << i + 1 << endl;
    } else {
      suffix[j++] = i + 1;
    }
  }
  while (j--) {
    cout << suffix[j] << endl;
  }
  return 0;
}
