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