eolymp
bolt
Try our new interface for solving problems

Line

Peter Vasichkin moved to another school. At the gym class he needs to find his place in the row... \InputFile The first line contains the number $n$ of students in the class. Then a nonincreasing sequence of $n$ positive integers is given --- the height of each person in a line. Then Peter's height $x$ is given. All numbers do not exceed $200$. \OutputFile Print the number under which Peter should stand in a line. If there are people with the same height as Peter has, then Peter should stand after them.
Time limit 1 second
Memory limit 128 MiB
Input example #1
8
165 163 160 160 157 157 155 154 
162
Output example #1
3
Source Stage II Ukrainian School Olympiad 2011-2012, Berdichev