n,a = map(int,input().split()) x = list(map(int,input().split())) import statistics if statistics.mean(x) == a: print("YES") else: print("NO")