MemSQL Start[c]UP 3.0 - Round 1
A
Declined Finalists
Codeforces
800
原题
←B →
翻译中…

This year, as in previous years, MemSQL is inviting the top 25 competitors from the Start[c]up qualification round to compete onsite for the final round. Not everyone who is eligible to compete onsite can afford to travel to the office, though. Initially the top 25 contestants are invited to come onsite. Each eligible contestant must either accept or decline the invitation. Whenever a contestant declines, the highest ranked contestant not yet invited is invited to take the place of the one that declined. This continues until 25 contestants have accepted invitations.

翻译中…

After the qualifying round completes, you know $*K*$ of the onsite finalists, as well as their qualifying ranks (which start at $1$, there are no ties). Determine the minimum possible number of contestants that declined the invitation to compete onsite in the final round.

翻译中…

Input

翻译中…

The first line of input contains $*K*$ ($1 ≤ *K* ≤ 25$), the number of onsite finalists you know. The second line of input contains $*r*_{1}, *r*_{2}, ..., *r*_{*K*}$ ($1 ≤ *r*_{*i*} ≤ 10^{6}$), the qualifying ranks of the finalists you know. All these ranks are distinct.

翻译中…

Output

翻译中…

Print the minimum possible number of contestants that declined the invitation to compete onsite.

翻译中…

Note

翻译中…

In the first example, you know all 25 onsite finalists. The contestants who ranked $1$-st, $13$-th, and $27$-th must have declined, so the answer is $3$.

翻译中…

样例

Input #1
25
2 3 4 5 6 7 8 9 10 11 12 14 15 16 17 18 19 20 21 22 23 24 25 26 28
Output #1
3
InputCopy OutputCopy
Input #2
5
16 23 8 15 4
Output #2
0
InputCopy OutputCopy
Input #3
3
14 15 92
Output #3
67
InputCopy OutputCopy
题目信息
题号
859A
时间限制
2 s
内存限制
256 MB
标签
贪心
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。