#include <bits/stdc++.h>
using namespace std;
double EPS = 1e-9;
int INF = 1000000005;
long long INFF = 1000000000000000005LL;
void checktimer() {
  clock_t start, end;
  start = clock();
  end = clock();
  double time_taken = double(end - start) / double(CLOCKS_PER_SEC);
  cout << "Execution time: " << time_taken << " secs";
}
inline string IntToString(long long a) {
  ostringstream str1;
  str1 << a;
  string geek = str1.str();
  return geek;
}
inline long long StringToInt(string a) {
  stringstream geek(a);
  long long x = 0;
  geek >> x;
  return x;
}
long long minn(long long a, long long b, long long c) {
  vector<long long> v = {a, b, c};
  long long m = *min_element(v.begin(), v.end());
  return m;
}
void solve() {
  long long n;
  cin >> n;
  string s;
  cin >> s;
  long long ncnt = 0, ocnt = 0;
  for (long long(i) = (0); (i) < (s.length()); ++(i)) {
    if (s[i] == 'n') {
      ncnt++;
    } else if (s[i] == 'o') {
      ocnt++;
    }
  }
  if (ncnt != 0) {
    for (long long i = 0; i < ncnt; i++) {
      cout << "1"
           << " ";
    }
    for (long long i = 0; i < ocnt - ncnt; i++) {
      cout << "0"
           << " ";
    }
    cout << endl;
  } else {
    for (long long i = 0; i < ocnt - ncnt; i++) {
      cout << "0"
           << " ";
    }
    cout << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
