eolymp
bolt
Try our new interface for solving problems
Problems

University rating

University rating

To assess the performance of universities, we decided to compile a rating. The activity of the university is evaluated by an integer from $-100$ to $100$. Count the number of universities with a positive rating, a negative rating, and a zero rating. \InputFile The first line contains a positive integer $n~(1 \le n \le 50000)$ --- the number of universities. The second line contains $n$ integers --- the rating of the $i~(1 \le i \le n)$-th university. \OutputFile Print three numbers in one line: \begin{itemize} \item the number of universities with a positive rating; \item the number of universities with a negative rating; \item the number of universities with a zero rating. \end{itemize}
Time limit 1 second
Memory limit 128 MiB
Input example #1
5
1 -1 0 2 -3
Output example #1
2 2 1
Source ІІ stage of All-Ukrainian informatics olympiad in Zhitomyr region 17.12.2022