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