#include <bits/stdc++.h>
using namespace std;
const long long N = 1e3 + 7;
const long long inf = 1e9;
const long long mod = 1e9 + 7;
int n;
char x;
int a[30];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    a[x - 'a']++;
  }
  int c1 = min({a['o' - 'a'], a['n' - 'a'], a['e' - 'a']});
  a['o' - 'a'] -= c1;
  a['e' - 'a'] -= c1;
  int c0 = min({a['z' - 'a'], a['e' - 'a'], a['r' - 'a'], a['o' - 'a']});
  while (c1-- > 0) {
    cout << "1 ";
  }
  while (c0-- > 0) {
    cout << "0 ";
  }
}
