#include <bits/stdc++.h>
int main() {
  char s[1000002];
  std::vector<int> v;
  std::fgets(s, sizeof(s), stdin);
  for (int i(0);; ++i) {
    if (s[i] == 'l')
      v.push_back(i + 1);
    else if (s[i] == 'r')
      std::printf("%d\n", i + 1);
    else
      break;
  }
  for (auto it = v.rbegin(); it != v.rend(); ++it) std::printf("%d\n", *it);
  return 0;
}
