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