#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  std::vector<int> v1, v2;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'l')
      v1.push_back(i + 1);
    else
      v2.push_back(i + 1);
  }
  for (int i = 0; i < v2.size(); i++) cout << v2[i] << "\n";
  for (int i = v1.size() - 1; i >= 0; i--) cout << v1[i] << "\n";
}
