'use strict'

function Main(input) {
  let isIncluded = false;
  input.split('').map(c => {
    if (c == 9) {
      if (!isIncluded) {
        console.log('Yes');
        isIncluded = true;
        return;
      }
    }
  });
  if (!isIncluded) {
    console.log('No');
  }
}

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