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