import sys input = sys.stdin.readline N=input().strip() for s in N: if s!="9": print("No") break else: print("Yes")