N = gets.to_i
A = N.times.map { gets.to_i }

rank = 1
score = A.first

A[0..-1].each do |a|
  if score < a
    rank += 1
  end

  puts rank
end