#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  long long k;
  cin >> k;
  cin >> s;
  long long n = 0, z = 0;
  for (int i = (0); i < (s.size()); i++) {
    if (s[i] == 'n')
      n++;
    else if (s[i] == 'z')
      z++;
  }
  while (n != 0) {
    cout << 1 << " ";
    n--;
  }
  while (z != 0) {
    cout << 0 << " ";
    z--;
  }
  return 0;
}
