#include <bits/stdc++.h>
const int MAXN = 1e5 + 10;
char str[MAXN];
int n = 0, r = 0;
int main() {
  int len;
  scanf("%d", &len);
  scanf("%s", str);
  for (int i = 0; str[i] != '\0'; ++i) {
    if (str[i] == 'n')
      ++n;
    else if (str[i] == 'r')
      ++r;
  }
  while (n--) printf("%d ", 1);
  while (r--) printf("%d ", 0);
}
