n = int(input())
s = input()
print(*([1] * s.count('n') + [0] * s.count('z')))

f523ec6de608733e7457a9ba07074d9bc2c7283b
<mask token>

<mask token>
print(*([1] * s.count('n') + [0] * s.count('z')))

n = int(input())
s = input()
print(*([1] * s.count('n') + [0] * s.count('z')))
