#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:167177216")
using namespace std;
int main() {
  char s[1000010];
  gets(s);
  int n = strlen(s);
  for (int i = 0; i < int(n); ++i)
    if (s[i] == 'r') cout << i + 1 << endl;
  for (int i = 0; i < int(n); ++i)
    if (s[n - 1 - i] == 'l') cout << n - i << endl;
  return 0;
}
