n,a=map(int,input().split()) x=sum(map(int,input().split()))/n print('YNEOS'[a==x::2])