N, A = map(int, input().split()) X = list(map(int, input().split())) if A==sum(X)/N: print("YES") else: print("NO")