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