module Main open System let na = Console.ReadLine().Split(' ') |> Array.map float let xs = Console.ReadLine().Split(' ') |> Array.map float Console.WriteLine( if Array.sum xs / na.[0] = na.[1] then "YES" else "NO" )