#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  vector<int> letter(26, 0);
  cin >> n >> s;
  for (auto c : s) {
    letter[c - 'a']++;
  }
  while (letter['n' - 'a'] > 0) {
    cout << "1 ";
    letter['n' - 'a']--;
  }
  while (letter['z' - 'a'] > 0) {
    cout << "0 ";
    letter['z' - 'a']--;
  }
  cout << endl;
  return EXIT_SUCCESS;
}
