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