#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  char bin[n];
  scanf("%s", bin);
  int zeroCount = 0;
  for (int x = 0; x < n; x++) {
    if (bin[x] == 'z') {
      zeroCount++;
    }
  }
  int oneCount = (n - 4 * zeroCount) / 3;
  for (int x = 0; x < oneCount; x++) {
    printf("%d", 1);
    printf("%s", " ");
  }
  for (int x = 0; x < zeroCount; x++) {
    printf("%d", 0);
    printf("%s", " ");
  }
  return 0;
}
