#include <bits/stdc++.h>
#pragma GCC optimize("Ofast", "unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const int INF = 1000000000;
int main() {
  cin.tie(nullptr);
  cout.tie(nullptr);
  ios_base::sync_with_stdio(false);
  int n, m = 0, z = 0;
  cin >> n;
  char c;
  for (int i = 0; i < n; ++i) {
    cin >> c;
    if (c == 'z') z++;
    if (c == 'n') m++;
  }
  for (int i = 0; i < m; ++i) cout << 1 << ' ';
  for (int i = 0; i < z; ++i) cout << 0 << ' ';
  cout << endl;
  return 0;
}
