s = gets.split.map(&:to_i) x = gets.split.map(&:to_i) for i in 1..(x.length - 1) x[0] += x[i] end if (x[0] * 10 / s[0]) == s[1] * 10 puts "YES" else puts "NO" end