s=str(input()) flag=1 for e in s: if e!="9": flag=0 print("Yes" if flag else "No")