#include <bits/stdc++.h>
using namespace std;
const int maxn = 100500;
const int infi = (1 << 30);
const long long infl = (1LL << 62);
const double eps = 1e-9;
const long long mod = 1000000007LL;
int main() {
  string s;
  cin.sync();
  getline(cin, s);
  for (int i = 0; i < s.length(); i++)
    if (s[i] == 'r') printf("%d\n", i + 1);
  for (int i = s.length() - 1; i >= 0; --i)
    if (s[i] == 'l') printf("%d\n", i + 1);
  return 0;
}
