n, a = map(int, input().split()) x = list(map(int, input().split())) print("YES" if a == (sum(x)/len(x)) else "NO")