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