program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: n

    read*, n
    if (mod(n,10)==9 .or. mod(n/10,10)==9) then
        print'(a)', 'Yes'
    else
        print'(a)', 'No'
    end if
    
end program main