#include <bits/stdc++.h>
using namespace std;
const int N = 25;
int main(int argc, char *argv[]) {
  string s;
  cin >> s;
  int n = s.length();
  int ans[n];
  int l = 0, r = n - 1;
  for (int i = (0), _b = (n); i < (_b); ++i) {
    if (s[i] == 'l')
      ans[r--] = i + 1;
    else
      ans[l++] = i + 1;
  }
  for (int i = (0), _b = (n); i < (_b); ++i) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
