Problem1556--找数

1556: 找数

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

 求n个整数中第五小的(包含负数)正整数。相同的整数看成一个数。比如,有6个数分别是1,1,3,4,5,6 。那么第五小的正整数就是6。如果不存在测 输出“NO”。 

Input

第一行输入一个n,(5<n<1000)
第二行为输入n个整数。

Output

第五个小的正整数

Sample Input Copy

10
1 2 1 2 3 4 5 6 7 8

Sample Output Copy

5

Source/Category

admin