#include <bits/stdc++.h>
using namespace std;
int a, b, c, l, r, x, y, z, man, mix, d[2000000], ans, ans1;
vector<long long> v1;
char s[2000000], s1, s2;
pair<double, int> p[100000];
int main() {
  cin >> s;
  a = strlen(s);
  l = 0;
  r = a;
  for (int i = 0; i < a; i++) {
    if (s[i] == 'l') {
      d[--r] = i + 1;
    } else
      d[l++] = i + 1;
  }
  for (int i = 0; i < a; i++) {
    cout << d[i] << endl;
  }
}
