n = int(input()) a = int(input()) nums = list(map(int, input().split())) if a == sum(nums)/n: print("Yes") else: print("NO")