Problem2790--前10名次数

2790: 前10名次数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 230  Solved: 169
[Status] [Submit] [Creator:]

Description

告诉你小明最近 n 次考试的年级排名,问:其中有多少次小明进了年级前 10 名?  

Input

第一行,一个整数 n(1 ≤ n ≤ 1000)。

第二行,n 个整数。每个整数均为不超过 1000 的正整数,表示小明每次考试的年级排名。

Output

输出一个整数,表示小明在这 n 次考试中有多少次进了年级前 10 名。

Sample Input Copy

10
15 20 33 23 22 15 15 10 8 12

Sample Output Copy

2

Source/Category