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

~/algor $ cat problems/musbat-va-manfiylar

Positives and negatives

Easy 1000 ms 64 MB 17%
Share

Three integers $A$, $B$ and $C$ are given. Determine how many of them are positive and how many are negative. Zero is neither positive nor negative.

Positive and negative numbers among three are counted separately

Input

One line with three integers: $A$, $B$ and $C$.

Output

One line with two integers: the number of positives first, then the number of negatives.

Note

$-10^{9} \le A, B, C \le 10^{9}$

Examples

Input #1
1 -2 3
Output #1
2 1
Input #2
-1 -2 -3
Output #2
0 3

Sign in to submit a solution

Signing up is free and takes a minute.