#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  int n = s.length();
  vector<int> a, b;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'l')
      a.push_back(i + 1);
    else
      b.push_back(i + 1);
  }
  int c = a.size(), d = b.size();
  for (int i = 0; i < d; i++) {
    printf("%d\n", b[i]);
  }
  for (int i = c - 1; i >= 0; i--) printf("%d\n", a[i]);
}
int main() { solve(); }
