#include <bits/stdc++.h>
using namespace std;
const int N = 1e4 + 123;
const int mod = 1e9 + 7;
const int INF = 1e9 + 1;
const long long INFL = 1e18 + 1;
const double eps = 1e-9;
const double pi = acos(-1.0);
vector<int> v1;
vector<int> v2;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'l')
      v2.push_back(i + 1);
    else
      v1.push_back(i + 1);
  }
  for (auto i : v1) cout << i << endl;
  for (int i = v2.size() - 1; i >= 0; i--) cout << v2[i] << endl;
  return 0;
}
