#include <bits/stdc++.h>
using namespace std;
int ans[1000001];
int main() {
  int i, n = 0;
  string s;
  cin >> s;
  for (i = 0; i < s.size(); i++)
    if (s[i] == 'r')
      cout << i + 1 << " ";
    else
      ans[++n] = i + 1;
  while (n--) cout << ans[n + 1] << " ";
}
