#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.length();
  int l = 1, r = n;
  vector<pair<int, int>> loc;
  for (int i = 0; i < n; ++i) {
    if (s[i] == 'l') {
      loc.push_back({r, i + 1});
      r -= 1;
    } else {
      loc.push_back({l, i + 1});
      l += 1;
    }
  }
  sort(loc.begin(), loc.end());
  for (int i = 0; i < n; ++i) {
    cout << loc[i].second << '\n';
  }
  return 0;
}
