#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> n >> s;
  int ones = 0, zeros = 0;
  for (char c : s) {
    if (c == 'n') ones++;
    if (c == 'r') zeros++;
  }
  while (ones--) cout << "1 ";
  while (zeros--) cout << "0 ";
  cout << endl;
  return 0;
}
