N,A=map(int,input().split()) av=sum(map(int,input().split()))/N if av == A: print("YES") else: print("NO")