#include <bits/stdc++.h>
char s[1000010];
std::deque<int> l, r;
int main() {
  scanf("%s", s);
  for (int i = 0; s[i]; i++) {
    if (s[i] == 'l')
      r.push_front(i + 1);
    else
      l.push_back(i + 1);
  }
  for (std::deque<int>::iterator i = l.begin(); i != l.end(); i++)
    printf("%d\n", *i);
  for (std::deque<int>::iterator i = r.begin(); i != r.end(); i++)
    printf("%d\n", *i);
  return 0;
}
