#include <bits/stdc++.h>
using namespace std;
string s;
long long n, nn, z, e, o, r, res1 = 0, res2 = 0;
int main() {
  cin >> n;
  cin >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'n') nn++;
    if (s[i] == 'z') z++;
  }
  for (int i = 1; i <= nn; i++) cout << 1 << ' ';
  for (int i = 1; i <= z; i++) cout << 0 << ' ';
  cout << endl;
  return 0;
}
