puts [[0, 0], [-2, -1], [-2, 1], [-1, -2], [-1, 2], [1, -2], [1, 2], [2, -1], [2, 1]].repeated_combination(3).include?(gets.split.map(&:to_i))?:YES:'NO'