#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(NULL);
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  vector<int> L, R;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'l') L.push_back(i + 1);
    if (s[i] == 'r') R.push_back(i + 1);
  }
  reverse(L.begin(), L.end());
  vector<int>::iterator it;
  for (it = R.begin(); it != R.end(); it++) cout << *it << "\n";
  for (it = L.begin(); it != L.end(); it++) cout << *it << "\n";
  return 0;
}
