Z=input() print('Yes' if Z == '9'*len(Z) else 'No')