#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
const double eps = 1e-9;
const int inf = 2000000000;
const long long infLL = 9000000000000000000;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  string second;
  cin >> second;
  int c = 0, d = 0;
  for (auto u : second) {
    if (u == 'n')
      c++;
    else if (u == 'z')
      d++;
  }
  while (c--) cout << 1 << " ";
  while (d--) cout << 0 << " ";
  cout << '\n';
  return 0;
}
