Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/for-musbat-manfiy-va-nollar

Positives, negatives and zeros

Easy 1000 ms 64 MB 29%
Share

A positive integer $n$ and $n$ integers are given. Determine how many of them are positive, how many are negative and how many are zero.

Grouping the numbers by sign

Input

The first line contains $n$. The second line contains $n$ integers separated by spaces.

Output

One line with three integers separated by spaces: the number of positives, the number of negatives and the number of zeros.

Note

$1 \le n \le 1000$
$-10^{9} \le a_{i} \le 10^{9}$

Examples

Input #1
5
3 -1 0 5 -8
Output #1
2 2 1
Input #2
3
0 0 7
Output #2
1 0 2

Sign in to submit a solution

Signing up is free and takes a minute.