ip,n=map(int,input().split()) ls=list(map(int,input().split())) if n== sum(ls)/len(ls): print("YES") else: print("NO")