import strutils, sequtils let N = stdin.readLine.parseInt var rnk = 1 let a = stdin.readAll.split.map parseInt echo rnk for a_i in a: if a[0] < a_i: rnk += 1 echo rnk