题目描述
Problem Description
Takahashi has been instructed by his boss to:
- Determine the average number of bugs in the company's $ N $ software products.
- Exclude software products with no bugs from the calculation.
Moreover, his boss dislikes decimals. However, underreporting the average number of bugs is not an option, so Takahashi decided to round up the value when reporting.
Takahashi needs to quickly summarize the average number of bugs for his boss. Given the number of bugs in each software product, calculate the average number of bugs in the software products that contain bugs, and round up the result to the nearest integer.
Input Format
The input is provided from the standard input in the following format:
$ N $ $ A_1 $ $ A_2 $ ... $ A_N $
- The first line contains an integer $N\ (1\ ≦\ N\ ≦\ 100)$ representing the number of software products.
- The second line contains the information about the number of bugs in each software product, separated by spaces. The number of bugs in the $ i $ -th software product is given by the integer $A_i\ (0\ ≦\ A_i\ ≦\ 100)$ provided in the $ i $ -th position.
- It is guaranteed that the total number of bugs across all given software products is at least one.
Output Format
Output the average number of bugs in the software products that contain bugs, rounded up to the nearest integer, on a single line. Ensure a newline at the end of the output.
Sample Input and Output
Sample Input #1
4
0 1 3 8
Sample Output #1
4
Sample Input #2
5
1 4 9 10 15
Sample Output #2
8
Notes/Hints
Sample Explanation 1
There are $ 3 $ software products with bugs, and the total number of bugs is $ 12 $. Therefore, the average number of bugs is $ 4 $.
Sample Explanation 2
The average number of bugs is $ 7.8 $, so it needs to be rounded up to $ 8 $.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分