import strutils, sequtils let N = stdin.readLine.parseInt var a = newSeqWith(N, 0) rnk = 1 for i in 0 ..< N: a[i] = stdin.readLine.parseInt for a_i in a: if a[0] < a_i: rnk += 1 echo rnk