#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 500;
const long long mod = 1e9 + 7;
const long long INF = 1LL << 57;
const int M = 1e6 + 500;
const long long int ths = 1LL << 40;
void solve() {
  long long int n;
  cin >> n;
  string s;
  cin >> s;
  long long int c1 = 0, c2 = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'z') c1++;
    if (s[i] == 'n') c2++;
  }
  long long int cnt = 0;
  for (int i = 1; i <= c2; i++) {
    cout << 1 << ' ';
  }
  for (int i = 0; i < c1; i++) cout << 0 << ' ';
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
