N = int(input()) A = list(map(int,input().split())) if sum(A) % N != 0: print('No') else: print('Yes')