#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  string s;
  cin >> s;
  long long o = 0;
  long long z = 0;
  for (long long i = 0; i < n; i++)
    if (s[i] == 'n')
      o++;
    else if (s[i] == 'z')
      z++;
  while (o--) cout << 1 << " ";
  while (z--) cout << 0 << " ";
}
int main() {
  long long t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
