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