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