#include <bits/stdc++.h>
using namespace std;
const int MXN = (int)2e6 + 100;
const int INF = (int)1e9 + 7;
const long long LINF = (long long)1e18;
const double EPS = (double)1e-9;
string s;
int ans[MXN];
int l, r;
int main() {
  cin >> s;
  l = 0, r = s.length() - 1;
  for (int i = 0; i < s.length(); ++i) {
    ans[(s[i] == 'l' ? r-- : l++)] = i + 1;
  }
  for (int i = 0; i < s.length(); ++i) {
    printf("%d\n", ans[i]);
  }
  return 0;
}
