#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  vector<int> front, back;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'l')
      back.push_back(i + 1);
    else
      front.push_back(i + 1);
  }
  for (int i = 0; i < front.size(); i++) cout << front[i] << "\n";
  for (int i = back.size() - 1; i >= 0; i--) cout << back[i] << "\n";
  return 0;
}
