Scholarship
Time limit1sMemory limit1024 MB
Given n exam marks, determine which scholarship Vasya gets: None, Common, High, or Named.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Scholarship
Vasya has finished his first term at the University and has passed all of his exams. He wants to know which scholarship he gets. The University gives scholarships by these rules:
- If a student has any satisfactory marks, the student gets no scholarship.
- If every mark in the examination period is excellent, the student gets a personal scholarship.
- If a student does not get a personal scholarship and the average mark is at least , the student gets a high scholarship.
- If a student gets neither a high nor a personal scholarship and has at least one satisfactory mark, the student gets a common scholarship.
A satisfactory mark is 3, a good mark is 4, and an excellent mark is 5. The average mark is the mean of all marks the student received in the exams.
Input
The first line contains an integer , the number of exams (). Each of the next lines contains an integer , the mark in the -th exam ().
Output
If Vasya gets no scholarship, output None. If he gets a common scholarship, output Common. If he gets a high scholarship, output High. If he gets a personal scholarship, output Named.