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