#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100100;
int n;
char s[MAXN];
void load() {
  scanf("%d", &n);
  scanf("%s", s);
}
void solve() {
  int cnt1 = 0, cnt2 = 0;
  for (int i = 0; i < n; i++) {
    cnt1 += s[i] == 'n';
    cnt2 += s[i] == 'r';
  }
  for (int i = 0; i < cnt1; i++) printf("1 ");
  for (int i = 0; i < cnt2; i++) printf("0 ");
  printf("\n");
}
int main() {
  load();
  solve();
  return 0;
}
