#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  int ind = 1;
  vector<int> izq, der;
  cin >> a;
  for (int i = 0; i < a.size(); i++) {
    if (a[i] == 'l')
      izq.push_back(ind);
    else
      der.push_back(ind);
    ind++;
  }
  for (int i = 0; i < der.size(); i++) cout << der[i] << endl;
  for (int i = izq.size() - 1; i >= 0; i--) cout << izq[i] << endl;
}
