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