n, a = map(int, raw_input().split()) print(sum(map(int, raw_input().split()))*1./n == a)and"YES"or"NO"