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