#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  string s;
  cin >> s;
  long count = 0;
  for (int i = 0; i < t; i++) {
    if (s[i] == 'z') {
      count++;
    }
  }
  int countz = count;
  int counto = (t - count * 4) / 3;
  for (int i = 0; i < counto; i++) {
    cout << "1"
         << " ";
  }
  for (int i = 0; i < countz; i++) {
    cout << "0"
         << " ";
  }
  return 0;
}
