#include <bits/stdc++.h>
using namespace std;
string second;
int n;
int vt[1000100];
void nhap() { cin >> second; }
void chuanbi() { n = second.size(); }
void xuli() {
  int dau = 1;
  int cuoi = n;
  for (int i = 0; i <= n - 1; i++) {
    if (second[i] == 'l') {
      vt[cuoi] = i + 1;
      cuoi--;
    } else {
      vt[dau] = i + 1;
      dau++;
    }
  }
}
void ghikq() {
  for (int i = 1; i <= n; i++) printf("%d ", vt[i]);
}
int main() {
  nhap();
  chuanbi();
  xuli();
  ghikq();
}
