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 PYTHON3):

Solution:
# 2
# s = input()
# arr = s.split("+")
# map_object = map(int, arr)
# list_of_integers = list(sorted(map_object))
# s_upd = ""
# for i in range(0, len(list_of_integers) - 1):
#     s_upd += str(list_of_integers[i]) + "+"
# print(s_upd + str(list_of_integers[len(list_of_integers) - 1]))

# 8
# s = input()
# t = input()
# s = "".join(reversed(s))
# if t == s:
#     print("YES")
# else:
#     print("NO")

# 6 - BITPEGEN
# upper = 0
# lower = 0
# s = input()
# res = ""
# for i in range(0, len(s)):
#     if s[i] >= 'a':
#         lower = lower + 1
#     else:
#         upper = upper + 1
#
# if upper > lower:
#     res = s.upper()
#
# else:
#     res = s.lower()
#
# print(res)

# 4
# positions = input()
# if '0000000' in positions or '1111111' in positions:
#     print("YES")
# else:
#     print("NO")

# 12
# n = int(input())
# s = input()
# cnt = 0
# for i in range(0, len(s) - 2):
#     if s[i] == 'x' and s[i + 1] == 'x' and s[i + 2] == 'x':
#         cnt += 1
# print(cnt)

# 10
# s = input()
# if s.isupper():
#     print(s.lower())
# elif s.islower():
#     print(s.upper())
# elif s[0].lower() and s[1:].isupper():
#     print(s[0].capitalize() + s[1:].lower())
# else:
#     print(s)

# s = input()
# res = s
# for i in range(len(s)):
#     if s[i] == "A" or s[i] == "a" or s[i] == "O" or s[i] == "o" or s[i] == "Y" or s[i] == "y" or s[i] == "I" or \
#             s[i] == "i" or s[i] == "E" or s[i] == "e" or s[i] == "U" or s[i] == "u":
#         res = res.replace(s[i], '')
# for i in range(len(res)):
#     res = res.replace(res[i], '.' + res[i])
# print(res)

n = int(input())
s = input()
res = ""
cnt_z = s.count('z')
cnt_e = s.count('e')
cnt_r = s.count('r')
cnt_o = s.count('o')
cnt_n = s.count('n')
while cnt_n > 0 and cnt_o > 0 and cnt_e > 0:
    res += "1 "
    cnt_n -= 1
    cnt_o -= 1
    cnt_e -= 1
while cnt_z > 0 and cnt_o > 0 and cnt_r > 0 and cnt_e > 0:
    res += "0 "
    cnt_z -= 1
    cnt_o -= 1
    cnt_e -= 1
    cnt_r -= 1
print(res[:len(res) - 1])