#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(false);
  cin.tie(0);
  long int n;
  cin >> n;
  const long int N = n;
  char s[N];
  int cnt0 = 0, cnt1 = 0;
  for (int i = 0; i < n; i++) {
    cin >> s[i];
    if (s[i] == 'z') {
      cnt0++;
    }
    if (s[i] == 'n') {
      cnt1++;
    }
  }
  for (int i = 0; i < cnt1; i++) cout << "1 ";
  for (int i = 0; i < cnt0; i++) cout << "0 ";
  return 0;
}
