#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n;
  cin >> n;
  string a;
  cin >> a;
  n = 0;
  long int z = count(a.begin(), a.end(), 'z');
  n = count(a.begin(), a.end(), 'n');
  while (n--) {
    cout << 1 << " ";
  }
  while (z--) {
    cout << 0 << " ";
  }
  cout << endl;
}
