function main(input) {
  input=input.trim();
  const arr = input.split('')[0].split(' ').map((n) => parseInt(n, 10));
  if(arr.indexOf(9)>=0){
    console.log("Yes");
  }else{
    console.log("No");
  }
}

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

