#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const double eps = 1e-8;
const int mod = 1e9 + 7;
const int P = 1e9 + 7;
const int N = 2e7;
const int MAXN = 1e6 + 5;
long long n, ans1, ans2;
char s[100005];
int main() {
  cin >> n;
  ans1 = ans2 = 0;
  for (long long i = 0; i < n; ++i) {
    cin >> s[i];
    if (s[i] == 'z') ans1++;
    if (s[i] == 'n') ans2++;
  }
  for (long long i = 0; i < ans2; ++i) cout << "1 ";
  for (long long i = 0; i < ans1; ++i) cout << "0 ";
  cout << endl;
}
