#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  vector<int> cnt(26);
  for (int i = 0; i < n; i++) {
    cnt[s[i] - 'a'] += 1;
  }
  for (int i = 0; i < cnt['n' - 'a']; i++) {
    cout << 1 << " ";
  }
  for (int i = 0; i < cnt['z' - 'a']; i++) {
    cout << 0 << " ";
  }
  cout << '\n';
}
