test_case, k_kun, rank = gets.chomp.to_i, gets.chomp.to_i, 1 puts rank (test_case - 1).times{ puts k_kun < gets.chomp.to_i ? rank += 1 : rank }