#include <bits/stdc++.h>
using namespace std;
char stone[1000010];
int len;
void solve(int now) {
  if (now == len) return;
  if (stone[now] == 'l') {
    solve(now + 1);
    printf("%d\n", now + 1);
  } else {
    printf("%d\n", now + 1);
    solve(now + 1);
  }
}
int main() {
  scanf("%s", stone);
  len = strlen(stone);
  solve(0);
  return 0;
}
