#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  int64_t N = s.size();
  vector<int64_t> v(N, 0);
  int64_t l = 0, r = N - 1;
  for (int64_t i = 0; i < N; ++i) {
    if (s[i] == 'l') {
      v[r] = i + 1;
      --r;
    } else {
      v[l] = i + 1;
      ++l;
    }
  }
  for (int64_t k : v) {
    cout << k << '\n';
  }
}
