#include <bits/stdc++.h>
using namespace std;
const long long mx = 1e6;
string s;
int main() {
  long long i, j, a, b, c, d, n, m, t;
  cin >> s;
  for (i = 0; i < s.size(); i++) {
    if (s[i] == 'r') {
      cout << i + 1 << "\n";
    }
  }
  for (i = s.size() - 1; i >= 0; i--) {
    if (s[i] == 'l') {
      cout << i + 1 << "\n";
    }
  }
  cout << "\n";
  return 0;
}
