n = gets.chomp.split.map(&:to_i) a = (gets.chomp.split.map(&:to_f).inject(:+)) /n[1] if a == n[1] puts "YES" else puts "NO" end