#include <bits/stdc++.h>
using namespace std;
void swap(char a, char b) {
  char c;
  c = a;
  a = b;
  b = c;
}
bool mami(long long int a[], int n) {
  long long int i, ma = a[0], mi = a[0];
  for (i = 0; i <= n - 1; i++) {
    ma = max(ma, a[i]);
    mi = min(mi, a[i]);
  }
  if (a[n] > ma || a[n] < mi) {
    return true;
  } else {
    return false;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, i, cz = 0, cn = 0;
  cin >> n;
  string s;
  cin >> s;
  for (i = 0; i <= n - 1; i++) {
    if (s[i] == 'z') {
      cz++;
    } else if (s[i] == 'n') {
      cn++;
    }
  }
  while (cn--) {
    cout << 1 << " ";
  }
  while (cz--) {
    cout << 0 << " ";
  }
  return 0;
}
