#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
const long long big = inf * 1LL * inf;
const int maxn = 1e6;
const int mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int ones = 0, zeros = 0;
  for (char ch : s) {
    if (ch == 'z') zeros++;
    if (ch == 'n') ones++;
  }
  for (int i = 0; i < ones; ++i) cout << 1 << ' ';
  for (int i = 0; i < zeros; ++i) cout << 0 << ' ';
}
