import strutils var rnk = 1 let a = stdin.readAll.splitlines a_0 = a[1].parseInt for i in 1 ..< a.high: if a_0 < a[i].parseInt: rnk += 1 echo rnk