Hogwarts Exam Ranking
Harry Potter and his classmates just finished their exams at Hogwarts. The scores of all students are published on the wall in strictly increasing order (no duplicate marks).
Harry knows his exact score , and his score is guaranteed to be somewhere in the list. He wants to find his exact 1-based position (rank) on the list so he knows where he stands among his peers.
Given and Harry's score on the first line, and the strictly increasing list of student scores on the second line, help him find his position using binary search.
Input
The first line contains two integers and (, ) — the number of students and Harry's score.
The second line contains space-separated integers () — the student scores in strictly increasing order. It is guaranteed that exists in the list.
Output
Print a single integer — the 1-based position (rank) of Harry's score in the list.