nList = list(input()) for i in nList: if i != '9': print('No') exit() print('Yes')