#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  long long int n = s.length();
  for (long long int i = 0; i < n; i++)
    if (s[i] == 'r') cout << i + 1, cout << "\n";
  for (long long int i = n - 1; i >= 0; i--)
    if (s[i] == 'l') cout << i + 1, cout << "\n";
  return 0;
}
