n = int(input()) seq = [int(i) for i in input().split()] seq.sort() count = 0 for i in range(n): if seq[0] in seq: count += 1 print(count)