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