Growth of boys and girls
Problem
The height of each student in the class is known. Boys' height is conventionally given by negative numbers. Is it true that the average height of boys exceeds the average height of girls by more than 10 cm?
Input
In the first line enter the number
N
(
1<=N<=20
) - the number of elements of a one-dimensional array. In the second line enter
N
non-zero integers.
Imprint
Print the word
YES
if the boys' average height is more than 10cm more than the girls' average height, otherwise print the word
NO
.
Examples
# |
Input |
Output |
1 |
5
-112 -23 83 44 -124
|
YES |
2 |
3
-63 -117 141
|
NO |
Запрещенные операторы: reverse
; min
; max
; sum