n = int(input()) alst = list(map(int, input().split())) tot = sum(alst) if tot % n == 0: print("Yes") else: print("No")