#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  for (int i = 0; i < (int)s.length(); i++)
    if (s[i] == 'r') printf("%i\n", i + 1);
  for (int i = (int)s.length() - 1; i > -1; i--)
    if (s[i] == 'l') printf("%i\n", i + 1);
  return 0;
}
