#include <bits/stdc++.h>
using namespace std;
#pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  long long arr[5];
  fill(arr, arr + 5, 0);
  for (int i = 0; i < n; i++) {
    if (s[i] == 'z') arr[0]++;
    if (s[i] == 'e') arr[1]++;
    if (s[i] == 'r') arr[2]++;
    if (s[i] == 'o') arr[3]++;
    if (s[i] == 'n') arr[4]++;
  }
  for (int i = 0; true; i++) {
    if (arr[1] > 0 && arr[3] > 0 && arr[4] > 0) {
      cout << 1 << " ";
      arr[1]--;
      arr[3]--;
      arr[4]--;
    } else {
      break;
    }
  }
  for (int i = 0; true; i++) {
    if (arr[0] > 0 && arr[2] > 0 && arr[3] > 0 && arr[1] > 0) {
      cout << 0 << " ";
      arr[0]--;
      arr[1]--;
      arr[2]--;
      arr[3]--;
    } else {
      break;
    }
  }
  return 0;
}
