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