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