"use strict"

function main(input) {
  input = input.split("")
  let ans = input[0] === "9" || input[1] === "9" ? "Yes" : "No"

  console.log(ans)
}
main(require("fs").readFileSync("/dev/stdin", "utf8"))
