'use strict'

function main(s) {

  const n = s.split('\n')[0].split('');
  const ans = (s[0] === '9' || s[1] === '9') ? 'Yes' : 'No';
  
  console.log(ans);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
