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