#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n;
  cin >> n;
  string s;
  long long int c = 0, cc = 0;
  cin >> s;
  for (long long int i = 0; i < n; i++) {
    if (s[i] == 'n')
      c++;
    else if (s[i] == 'z')
      cc++;
  }
  for (long long int i = 1; i <= c; i++) cout << 1 << " ";
  for (long long int i = 1; i <= cc; i++) cout << 0 << " ";
  return 0;
}
