#include <bits/stdc++.h>
using namespace std;
const long long N = 3e3;
vector<long long> a, b;
char k;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  for (int i = 1; cin >> k; i++)
    if (k == 'l')
      a.push_back(i);
    else
      b.push_back(i);
  reverse(a.begin(), a.end());
  for (int i = 0; i < b.size(); i++) cout << b[i] << "\n";
  for (int i = 0; i < a.size(); i++) cout << a[i] << "\n";
}
