#include <bits/stdc++.h>
using namespace std;
string s;
vector<int> v1, v2;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> s;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    if (s[i] == 'r') {
      v1.push_back(i + 1);
    } else {
      v2.push_back(i + 1);
    }
  }
  for (int i = 0; i < v1.size(); i++) {
    cout << v1[i] << "\n";
  }
  for (int i = v2.size() - 1; i >= 0; i--) {
    cout << v2[i] << "\n";
  }
  return 0;
}
