#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> s;
  n = s.size();
  int ans[n];
  int r = n - 1, l = 0;
  int cnt = 1;
  for (auto it : s) {
    if (it == 'l') {
      ans[r] = cnt;
      r -= 1;
    } else {
      ans[l] = cnt;
      l += 1;
    }
    cnt++;
  }
  for (int i = 0; i < n; i++) {
    cout << ans[i] << "\n";
  }
  return 0;
}
