#include <bits/stdc++.h>
using namespace std;
long long i, j, k, l, n, a, b, ans = 0;
int gcd(int a, int b) {
  if (a < b) swap(a, b);
  return (b == 0) ? a : gcd(b, a % b);
}
struct st {
  int first;
  long double second;
};
int main() {
  std::ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  n = s.size();
  vector<long long> left, right;
  j = 0;
  for (auto i : s) {
    if (i == 'l') {
      left.push_back(++j);
    } else {
      right.push_back(++j);
    }
  }
  for (auto i : right) cout << i << "\n";
  reverse(left.begin(), left.end());
  for (auto i : left) cout << i << "\n";
  fflush(stdin);
  return 0;
}
