#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const int maxn = 1e+5;
int main(int argc, const char* argv[]) {
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'r') cout << i + 1 << "\n";
  }
  for (int i = s.size() - 1; i >= 0; i--)
    if (s[i] == 'l') cout << i + 1 << "\n";
  return 0;
}
