class Problem0476: def solve(this): n,a = map(int,input().split()) x = map(int,input().split()) if a == (sum(x) / n): print("YES") else: print("NO") if __name__ == "__main__": problem = Problem0476() problem.solve()