#include <bits/stdc++.h>
int main() {
  int jumlah, counterZ = 0, counterR = 0, counterE = 0, counterO = 0,
              counterN = 0;
  char input[100055];
  scanf("%d", &jumlah);
  scanf("%s", &input);
  for (int x = 0; x < jumlah; x++) {
    if (input[x] == 'z')
      counterZ++;
    else if (input[x] == 'e')
      counterE++;
    else if (input[x] == 'r')
      counterR++;
    else if (input[x] == 'o')
      counterO++;
    else if (input[x] == 'n')
      counterN++;
  }
  while (counterZ != 0 || counterE != 0 || counterR != 0 || counterO != 0 ||
         counterN != 0) {
    if (counterO >= 1 && counterN >= 1 && counterE >= 1) {
      printf("1 ");
      counterO -= 1, counterN -= 1, counterE -= 1;
    } else if (counterZ >= 1 && counterE >= 1 && counterR >= 1 &&
               counterO >= 1) {
      printf("0 ");
      counterZ -= 1, counterE -= 1, counterR -= 1, counterO -= 1;
    }
  }
  printf("\n");
  return 0;
}
