Problem: When Serezha was three years old, he was given a set of cards with letters for his birthday. They were arranged into words in the way which formed the boy's mother favorite number in binary notation. Serezha started playing with them immediately and shuffled them because he wasn't yet able to read. His father decided to rearrange them. Help him restore the original number, on condition that it was the maximum possible one. 

Input

The first line contains a single integer n (1 ⩽ n ⩽ 10^5) — the length of the string. The second line contains a string consisting of English lowercase letters: 'z', 'e', 'r', 'o' and 'n'.

It is guaranteed that it is possible to rearrange the letters in such a way that they form a sequence of words, each being either "zero" which corresponds to the digit 0 or "one" which corresponds to the digit 1.

Output

Print the maximum possible number in binary notation. Print binary digits separated by a space. The leading zeroes are allowed.

Examples

Input


4
ezor


Output


0 


Input


10
nznooeeoer


Output


1 1 0 

Note

In the first example, the correct initial ordering is "zero".

In the second example, the correct initial ordering is "oneonezero".

Solution (in PYTHON):

Solution:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''n, k = map(int, raw_input().split())
for i in range(k):
    a = n% 10
    if a ==0 :
        n = n /10
    else:
        n = n -1
print n'''


'''n = int(input())
#a = list()
m = 0
#for i in range(n):
 #   a.append(map(int, raw_input().split()))
a = map(int, raw_input().split())
for x in a:
    if x == 1:
        m = m + 1
        print "HARD"
        break
if m == 0:
    print "EASY"'''


'''i=0
a, b = map(int, raw_input().split())
if a<=b:
    while a<=b:
        a = a * 3
        b = b * 2
        i = i + 1
print i '''


'''n = int(input())
for i in range(1,n+1):
    if i == 1:
        print "I hate",
    else:
        if i%2 != 0 :
            print " that I hate",
        else:
            print " that I love",
print "it"  '''


'''a, b, c, d = map(int,raw_input().split())
if a > d:
    x = a
    a = d
    d = x
if b > d:
    x = b
    b = d
    d = x
if c > d:
    x = c
    c = d
    d = x
x1 = d - c
x2 = d - b
x3 = d - a
print x1, x2, x3   '''



'''n = int(input())
a = n / 100
b = n % 100
c = b / 20
d = b % 20
e = d / 10
f= d % 10
g = f / 5
h = f % 5
mins = a + c +g + e + h
print mins '''


'''c = 0
b = list()
a = raw_input()
b = map(str, raw_input().split())
for i in range(len(b)):
    if a == b:
        c = c + 1
if c ==0:
    print "NO"
else:
    print "YES"'''

'''n = raw_input()
a = raw_input()
if n[0] in a or n[-1] in a:
    print("YES")
else:
    print("NO") '''


'''x = 0
n = int(input())
for i in range(1,n):
    m = n
    if (m - i) % i == 0:
        x = x + 1
print x  '''


''' n = int(input())
if n % 2 ==0:
    print "Mahmoud"
else:
    print "Ehab"  '''



'''n, m, k = map(int,raw_input().split())
if n<=m and n<=k:
   print "YES"
else:
    print "NO"   '''


n = int(raw_input())
#a = map(str, raw_input().split())
a = raw_input()
for i in range(len(a)):
    if a[i] == 'n':
        print "1",
for i in range(len(a)):
    if a[i] =='z':
        print "0",