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