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