#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using ULL = unsigned long long;
using VI = vector<int>;
using VL = vector<LL>;
using PII = pair<int, int>;
using PLL = pair<LL, LL>;
void dout() { cerr << endl; }
template <typename Head, typename... Tail>
void dout(Head H, Tail... T) {
  cerr << H << ' ';
  dout(T...);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;
  cin >> s;
  VI ans((int)s.size());
  int l = 0, r = (int)s.size() - 1;
  for (int i = (0); i < ((int)s.size()); ++i) {
    char c = s[i];
    if (c == 'l')
      ans[r--] = i;
    else
      ans[l++] = i;
  }
  for (auto x : ans) {
    cout << x + 1 << "\n";
  }
  return 0;
}
