#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
void Nonnna() {
  cout << fixed << setprecision(0);
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  Nonnna();
  int n;
  cin >> n;
  string s;
  cin >> s;
  int nm = 0, z = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'n') nm++;
    if (s[i] == 'z') z++;
  }
  for (int i = 0; i < nm; i++) cout << 1 << " ";
  for (int i = 0; i < z; i++) cout << 0 << " ";
  return 0;
}
