Eric is currently hiring a new group of people to rake leaves! Each person has their own ranking . He wants to know how many people are qualified (have a ranking of at least ), and whether at least half of the people are qualified. However, since he isn't the greatest programmer, he turns to you for help!
Input Specification
The first line of input will contain one integer , representing the number of people in the group.
The second line of input will contain space-separated integers , representing the person's ranking.
Output Specification
On the first line, output the integer representing the number of people who are qualified.
On the second line, output YAY
if at least half the people are qualified, and NOO
if not.
Sample Input 1
3
1 50 100
Sample Output 1
2
YAY
Sample Input 2
5
1 1 1 100 100
Sample Output 2
2
NOO
Comments