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