n, a = map(int, input().split()) l = list(map(int, input().split())) avg = sum(l) / len(l) print('YES' if avg == a else 'NO')