#include <bits/stdc++.h>
using namespace std;
int m, l, r, a[1200000];
string s;
int main() {
  cin >> s;
  m = s.size();
  l = 1;
  r = m;
  for (int i = 0; i < m; i++)
    if (s[i] == 'l') {
      a[r] = i + 1;
      r--;
    } else {
      a[l] = i + 1;
      l++;
    }
  for (int i = 1; i <= m; i++) cout << a[i] << endl;
  return 0;
}
