#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  long long int i, j, k, l, p, q, sum, t, z, f, n, x1, y1, g, m, maxi, mini, d,
      x, y;
  string s;
  cin >> s;
  vector<int> v1;
  vector<int> v2;
  for (i = 0; i < s.length(); i++) {
    if (s[i] == 'r') {
      v1.push_back(i + 1);
    } else {
      v2.push_back(i + 1);
    }
  }
  for (i = 0; i < v1.size(); i++) {
    cout << v1[i] << "\n";
  }
  reverse(v2.begin(), v2.end());
  for (i = 0; i < v2.size(); i++) {
    cout << v2[i] << "\n";
  }
  return 0;
}
