

const main = arg => {

    n = arg.trim();

    if (n[0] === '9' || n[1] === '9') {
        console.log("Yes");
    } else {
        console.log("No");
    }

}

main(require('fs').readFileSync('/dev/stdin', 'utf-8'));