#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  char c;
  int one = 0, zero = 0;
  for (int i = 0; i < n; i++) {
    cin >> c;
    if (c == 'z')
      zero++;
    else if (c == 'n')
      one++;
  }
  while (one--) cout << 1 << " ";
  while (zero--) cout << "0 ";
}
