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