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