#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, z = 0, e = 0, r = 0, o = 0, n = 0, i = 0;
  char m[100000];
  cin >> a;
  while (i < a) {
    cin >> m[i];
    i++;
  }
  i = 0;
  while (i < a) {
    if (m[i] == 'z') {
      z++;
    }
    if (m[i] == 'n') {
      n++;
    }
    i++;
  }
  i = 0;
  while (i < n) {
    cout << 1 << " ";
    n--;
  }
  i = 0;
  while (i < z) {
    cout << 0 << " ";
    z--;
  }
}
