#include <bits/stdc++.h>
using namespace std;
const long double INF = 1000000000;
const long long INFll = 1ll * INF * INF;
const long double ldINF = 1e+018;
const long double EPS = 0.000000001;
const int sdx[4] = {-1, 0, 1, 0};
const int sdy[4] = {0, 1, 0, -1};
const int MOD = 1000000007;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  vector<int> l, r;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'l')
      r.push_back(i);
    else
      l.push_back(i);
  }
  for (int i = 0; i < l.size(); i++) printf("%d\n", l[i] + 1);
  for (int i = r.size() - 1; i >= 0; i--) printf("%d\n", r[i] + 1);
  return 0;
}
