#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  vector<long long> fr, bc;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == 'l')
      bc.push_back(i + 1);
    else
      fr.push_back(i + 1);
  }
  reverse(bc.begin(), bc.end());
  for (long long i = 0; i < fr.size(); i++) cout << fr[i] << "\n";
  for (long long i = 0; i < bc.size(); i++) cout << bc[i] << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) solve();
  return 0;
}
