def main(): n = int(input()) a = list(map(int, input().split())) if sum(a) % n == 0: print("Yes") else: print("No") if __name__ == "__main__": main()