#include <bits/stdc++.h>
using namespace std;
double pi = 3.1415926536;
int dx[] = {0, 1, 0, -1};
int dy[] = {1, 0, -1, 0};
int main() {
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  int arr[s.size()];
  int idx1 = s.size() - 1, idx2 = 0;
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == 'l')
      arr[idx1--] = i + 1;
    else
      arr[idx2++] = i + 1;
  }
  for (int i = 0; i < (int)s.size(); i++) cout << arr[i] << endl;
}
