#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const long long INFLL = 1000000000000000000LL;
const int MAXN = 200009;
string s;
stack<int> bot;
queue<int> top;
int pos = 1;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> s;
  for (char c : s) {
    if (c == 'l') {
      bot.push(pos++);
    } else {
      top.push(pos++);
    }
  }
  while (!top.empty()) {
    cout << top.front() << "\n";
    top.pop();
  }
  while (!bot.empty()) {
    cout << bot.top() << "\n";
    bot.pop();
  }
}
