#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void ZZ(const char* name, Arg1&& arg1) {
  std::cerr << name << " = " << arg1 << "\n";
}
template <typename Arg1, typename... Args>
void ZZ(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  std::cerr.write(names, comma - names) << " = " << arg1;
  ZZ(comma, args...);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  unordered_map<char, int> c;
  for (char ch : s) c[ch]++;
  int ones = min({c['o'], c['n'], c['e']});
  c['o'] -= ones;
  c['n'] -= ones;
  c['e'] -= ones;
  for (auto i = (0); i < (ones); i++) cout << 1 << ' ';
  n -= ones * 3;
  for (auto i = (0); i < (n / 4); i++) cout << 0 << ' ';
}
