n = gets().split(" ").map(&:to_f) m= gets().split(" ").map(&:to_f).inject(:+) if (m/n[0]) == n[1] then p "YES" else p "NO" end