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