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