#include <bits/stdc++.h>
using namespace std;
const int N = 1000010;
const long long MOD = 1e9 + 7;
void solve() {
  string s;
  cin >> s;
  int n = s.size();
  vector<int> a, b;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'l') a.push_back(i + 1);
    if (s[i] == 'r') b.push_back(i + 1);
  }
  reverse(a.begin(), a.end());
  for (auto x : b) cout << x << "\n";
  for (auto x : a) cout << x << "\n";
}
int main() { solve(); }
