#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string ans;
  cin >> ans;
  int one = 0, zero = 0;
  for (int i = 0; i < n; i++) {
    if (ans[i] == 'n') one++;
    if (ans[i] == 'z') zero++;
  }
  for (int i = 0; i < one; i++) cout << 1 << " ";
  for (int i = 0; i < zero; i++) cout << 0 << " ";
}
