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