#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, ct1 = 0, ct2 = 0;
  cin >> n;
  char a;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a == 'z') ct2++;
    if (a == 'n') ct1++;
  }
  while (ct1--) {
    cout << 1 << " ";
  }
  while (ct2--) cout << 0 << " ";
  return 0;
}
