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