#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  string s;
  cin >> s;
  int cnt1 = 0, cnt0 = 0;
  for (int i = 0; i < t; i++) {
    if (s[i] == 'n')
      cnt1++;
    else if (s[i] == 'z')
      cnt0++;
  }
  for (int i = 0; i < cnt1; i++) {
    cout << 1 << " ";
  }
  for (int i = 0; i < cnt0; i++) {
    cout << 0 << " ";
  }
  return 0;
}
