#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  string str;
  cin >> str;
  int n = 0, z = 0;
  for (int i = 0; i < str.size(); i++) {
    if (str[i] == 'n') {
      n++;
    } else if (str[i] == 'z') {
      z++;
    }
  }
  for (int i = 1; i <= n; i++) {
    cout << 1 << " ";
  }
  for (int i = 1; i <= z; i++) {
    cout << 0 << " ";
  }
  cout << endl;
  return 0;
}
