#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n, i, j, zero = 0, one = 0;
  cin >> n;
  char cards[n];
  cin >> cards;
  for (i = 0; i < strlen(cards); i++) {
    if (cards[i] == 'z') {
      zero++;
    } else if (cards[i] == 'n') {
      one++;
    }
  }
  for (j = 0; j < one; j++) {
    cout << "1 ";
  }
  for (j = 0; j < zero; j++) {
    cout << "0 ";
  }
  cout << "\n";
}
