require 'matrix'
X, Y = gets.split.map(&:to_i)
ans = if [[0, 0], [2, 1], [1, 2], [2, -1], [1, -2], [-2, 1], [-1, 2], [-2, -1], [-1, -2]].map {|a| Vector.elements(a)}.repeated_combination(3).map {|a, b, c| a + b + c}.include?(Vector[X, Y])
        "YES"
      else
        "NO"
      end
puts ans