n,a=gets.split.map &:to_i xs=gets.split.map &:to_f puts (xs.reduce(:+)/n == a)?"YES":"NO"