#include <bits/stdc++.h>
const int OO = (long long)2e9;
const double eps = 1e-9;
const long long MAX = 101;
const long long MOD = 256;
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  vector<int> L, R;
  string s;
  cin >> s;
  for (int i = (0); i < (s.size()); ++i) {
    if (s[i] == 'l')
      L.push_back(i + 1);
    else
      R.push_back(i + 1);
  }
  for (int i = (0); i < (R.size()); ++i) {
    cout << R[i] << '\n';
  }
  for (int i = (L.size()) - 1; i >= (0); --i) {
    cout << L[i] << '\n';
  }
  return 0;
}
