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