#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  vector<int> right;
  stack<int> left;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'l') {
      left.push(i + 1);
    } else if (s[i] == 'r') {
      right.push_back(i + 1);
    }
  }
  for (int i = 0; i < right.size(); i++) {
    cout << right[i] << '\n';
  }
  while (left.size()) {
    cout << left.top() << '\n';
    left.pop();
  }
  return 0;
}
