#P187. 【例31.2】 证书等级

【例31.2】 证书等级

Description

For this assessment, the Blue Bridge Cup Youth Group has implemented a new STEMA assessment. The relationship between scores and certificates is as follows:
Rank Certificate Level
Top 10% First Prize
Top 30% Second Prize
Top 60% Third Prize
Top 80% Excellence Award
Given Xiaolan's score and the scores of all other participants, can you help Xiaolan calculate which certificate level he can receive?

Input Format

The first line contains an integer scorescore (0score1000≤score≤100) representing Xiaolan's score.
The second line contains an integer nn (10n100010≤n≤1000) representing the total number of participants.
The third line contains n1n-1 integers, each representing the score of a participant (excluding Xiaolan), with scores ranging from 00 to 100100.

Output Format

Output one of the letters AA, BB, CC, DD, or EE, representing First Prize, Second Prize, Third Prize, Excellence Award, or No Award, respectively. Note: Participants with the same score receive the same level, and subsequent rankings are adjusted accordingly.

Sample

95
10
99 99 90 80 70 71 78 77 60
B