print("Yes" if set(map(int, input())) == set([9]) else "No")