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