x, y = gets.split.map(&:to_i) # Patterns = [[-2,-1],[-2,+1],[-1,-2],[-1,+2],[+1,-2],[+1,+2],[+2,-1],[+2,+1]] # array = [[0, 0]] # Patterns.each{|p1| # array << p1 # Patterns.each{|p2| # array << [p1[0]+p2[0], p1[1]+p2[1]] # Patterns.each{|p3| # array << [p1[0]+p2[0]+p3[0], p1[1]+p2[1]+p3[1]] # } # } # } # array.uniq Results = [[0, 0], [-2, -1], [-4, -2], [-6, -3], [-6, -1], [-5, -4], [-5, 0], [-3, -4], [-3, 0], [-2, -3], [-4, 0], [-6, 1], [-5, -2], [-5, 2], [-3, -2], [-3, 2], [-2, 1], [-3, -3], [-4, -5], [-4, -1], [-2, -5], [-1, -4], [-1, -2], [-3, 1], [-4, 3], [-2, 3], [-1, 0], [-1, 2], [-1, -3], [0, -5], [0, -1], [1, -4], [1, -2], [-1, 1], [0, 3], [1, 0], [1, 2], [0, -2], [2, -3], [2, -1], [2, 1], [-4, 2], [-6, 3], [-5, 4], [-3, 4], [-3, -1], [-4, -3], [-4, 1], [-3, 3], [-4, 5], [-2, 5], [-1, 4], [-1, -1], [0, -3], [0, 1], [-1, 3], [0, 5], [1, 4], [0, 2], [2, 3], [-2, -4], [-3, -6], [-1, -6], [-2, 0], [0, -4], [1, -6], [2, -5], [1, -3], [3, -4], [3, -2], [1, -1], [3, 0], [-2, 4], [-3, 6], [-1, 6], [0, 4], [1, 6], [2, 5], [1, 1], [3, 2], [1, 3], [3, 4], [2, -4], [3, -6], [4, -5], [4, -3], [2, 0], [4, -1], [4, 1], [3, -3], [5, -4], [5, -2], [3, -1], [5, 0], [2, 4], [3, 6], [4, 3], [4, 5], [3, 1], [5, 2], [3, 3], [5, 4], [4, -2], [6, -3], [6, -1], [4, 0], [6, 1], [4, 2], [6, 3]] print Results.include?([x, y]) ? 'YES' : 'NO'