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