#include <bits/stdc++.h>
using namespace std;
long long a[1000];
void win() {
  int n, sum1 = 0, sum0 = 0;
  string s;
  cin >> n >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'n') sum1++;
    if (s[i] == 'z') sum0++;
  }
  for (int i = 1; i <= sum1; i++) {
    cout << 1 << " ";
  }
  for (int i = 1; i <= sum0; i++) {
    cout << 0 << " ";
  }
}
int main() {
  int t = 1;
  while (t--) {
    win();
  }
}
