#include <bits/stdc++.h>
using namespace std;
void init() { return; }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  init();
  string s;
  cin >> s;
  long long int l = s.length();
  vector<long long int> lf, rg;
  for (long long int i = 0; i < l; i++) {
    if (s[i] == 'l') {
      lf.push_back(i + 1);
    } else {
      rg.push_back(i + 1);
    }
  }
  reverse(lf.begin(), lf.end());
  for (auto it : rg) {
    cout << it << endl;
  }
  for (auto it : lf) {
    cout << it << endl;
  }
  return 0;
}
