from math import floor def main(): N = int(input()) A = list(map(int, input().split())) if sum(A) / N == floor(sum(A)/N): print("Yes") else: print("No") if __name__ == "__main__": main()