max_height = 0 count = 0 num_candles = int((raw_input().strip())) candle_heights = [int(x) for x in raw_input().split()] for new_height in candle_heights: if new_height < max_height: continue elif new_height > max_height: max_height = new_height count = 1 else: count += 1 print count