#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  char c;
  scanf("%d", &n);
  scanf("%c", &c);
  string s;
  getline(cin, s);
  int o = 0, z = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'n')
      o++;
    else if (s[i] == 'z')
      z++;
  }
  for (int i = 0; i < o; i++) cout << "1 ";
  for (int i = 0; i < z; i++) cout << "0 ";
}
