#include <bits/stdc++.h>
using namespace std;
vector<int> st, dr;
string s;
int main() {
  string s;
  cin >> s;
  int x = 1;
  for (auto i : s) {
    if (i == 'l') {
      dr.push_back(x++);
    } else
      st.push_back(x++);
  }
  for (auto i : st) cout << i << '\n';
  for (reverse_iterator<vector<int>::iterator> it = dr.rbegin();
       it != dr.rend(); it++)
    cout << *it << '\n';
  return 0;
}
