#include <bits/stdc++.h>
using namespace std;
int dr[] = {0, 0, 1, -1, -1, -1, 1, 1};
int dc[] = {1, -1, 0, 0, -1, 1, -1, 1};
int const MAX = 1e6 + 7;
int const MOD = 1e9 + 7;
int arr[MAX];
pair<long long, long long> q[MAX];
int main() {
  string s;
  cin >> s;
  vector<int> ans[2];
  for (int i = 0; i < s.length(); ++i)
    (s[i] == 'r') ? ans[0].push_back(i + 1) : ans[1].push_back(i + 1);
  for (int i = 0; i < (long long)ans[0].size(); ++i) printf("%d\n", ans[0][i]);
  for (int i = (long long)ans[1].size() - 1; i >= 0; --i)
    printf("%d\n", ans[1][i]);
}
