#include <bits/stdc++.h>
using namespace std;
const int INF = 1e6 + 7;
char a[INF];
void dfs(int countt, char a[], int i) {
  if (a[i] == 'l') {
    dfs(countt + 1, a, ++i);
    printf("%d\n", countt);
  } else if (a[i] == 'r') {
    printf("%d\n", countt);
    dfs(countt + 1, a, ++i);
  }
}
int main() {
  int countt = 1;
  scanf("%s", a);
  dfs(countt, a, 0);
  return 0;
}
