#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 6;
int ans[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  int n = (int)s.size(), l = 0, r = n - 1;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'l')
      ans[r--] = i;
    else
      ans[l++] = i;
  }
  for (int i = 0; i < n; i++) cout << ans[i] + 1 << '\n';
}
