#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using PII = pair<int, int>;
const int N = 1e5 + 10;
char s[N];
int main() {
  int n;
  scanf("%d%s", &n, s);
  int cnt0 = 0, cnt1 = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'n')
      cnt1++;
    else if (s[i] == 'z')
      cnt0++;
  }
  while (cnt1--) printf("1 ");
  while (cnt0--) printf("0 ");
  puts("");
  return 0;
}
