Shane wanted to enter a halloween costume contest; however, he just missed the registration. A list of participants had signed up for the contest and each participant has a score , not inclusive of Shane. He wants to figure out his placement in the contest and also the highest and lowest scores if he had entered the contest.
Input Specification
The first line of input will contain two space-separated integers and , representing the number of participants in the contest and Shane's score respectively.
The second line of input will contain space-separated integers , representing the score of the i-th participant.
Output Specification
The first line of output should be Shane's placement in the contest. If there is a tie, output the better placement.
The second line of output should be two space-separated integers of the highest and lowest scores of the contest.
Subtasks
Subtask 1 [20%]
Subtask 2 [80%]
Sample Input 1
5 4
3 1 4 1 5
Sample Output 1
2
5 1
Sample 1 Explanation
The order of the scores from highest to greatest in the contest are . Thus, Shane's score of ties for . The highest score in the contest is and the lowest score is .
Sample Input 2
3 3
1 2 3
Sample Output 2
1
3 1
Comments