#include <bits/stdc++.h>
using namespace std;
char all[100005];
int main() {
  int N, a = 0, b = 0, i;
  scanf("%d %s", &N, all);
  for (i = 0; i < N; i++) {
    if (all[i] == 'n')
      a++;
    else if (all[i] == 'z')
      b++;
  }
  while (a--) printf("1 ");
  while (b--) printf("0 ");
  return 0;
}
