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