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