from collections import defaultdict def main(): n, a = map(int, input().split()) ave = sum(map(int, input().split())) / n print(("YES" if ave == a else "NO")) if __name__ == '__main__': main()