2840: 练31.2 数值统计

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

统计给定的 $n$ 个数中,负数、零和正数的个数。

Input

输入的第一个数是整数 $n$,表示需要统计的数值的个数,然后是 $n$ 个整数,-$100$≤ 所有数字 ≤$100$。

Output

输出一行 $a$,$b$ 和 $c$,分别表示给定的数据中负数、零和正数的个数。

Sample Input Copy

6 0 1 2 3 -1 0

Sample Output Copy

1 2 3