#include <bits/stdc++.h>
long long mod = 1e9 + 7;
const int MAX = 1e5 + 5;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    if (s[i] == 'r') {
      cout << i + 1 << "\n";
    }
  }
  for (int i = n - 1; i >= 0; i--) {
    if (s[i] == 'l') cout << i + 1 << "\n";
  }
  return 0;
}
