n = gets.to_i a0 = gets.to_i rank = 1 puts rank (n - 1).times do a = gets.to_i rank += 1 if a0 < a puts rank end