#include <bits/stdc++.h>
using namespace std;
int main() {
  if (fopen("input.txt", "r")) {
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
  }
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  int n = s.length();
  vector<int> v(n + 1);
  int lo = 1;
  int hi = n;
  for (int i = 0; i < (int)s.length(); ++i) {
    if (s[i] == 'l') {
      v[hi] = i + 1;
      hi--;
    } else {
      v[lo] = i + 1;
      lo++;
    }
  }
  for (int i = 1; i <= n; ++i) {
    cout << v[i] << '\n';
  }
  return 0;
}
