#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n, a[26] = {0}, b[100005];
  string s, ans;
  cin >> n;
  cin >> s;
  for (i = 0; i < s.length(); i++) {
    a[s[i] - 'a']++;
  }
  j = 0;
  for (i = 0; i < a['n' - 'a']; i++) {
    b[j++] = 1;
  }
  for (i = 0; i < a['z' - 'a']; i++) {
    b[j++] = 0;
  }
  for (i = 0; i < j; i++) {
    cout << b[i] << " ";
  }
  cout << endl;
  return 0;
}
