n = gets.to_i scores = $stdin.read.split(?\n).map(&:to_i) rank = 1 puts rank for i in 1..n-1 if scores[0] < scores[i] rank += 1 end puts rank end