#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  string s;
  cin >> s;
  map<char, long long int> mp;
  for (auto c : s) {
    mp[c]++;
  }
  for (long long int i = 0; i < mp['n']; i++) {
    cout << 1 << " ";
  }
  for (long long int i = 0; i < mp['z']; i++) {
    cout << 0 << " ";
  }
  return 0;
}
