<reponame>Ashindustry007/competitive-programming
#!/usr/bin/env python3
# https://abc073.contest.atcoder.jp/tasks/abc073_a
if '9' in input(): print('Yes')
else: print('No')

#!/usr/bin/env python3
# https://abc073.contest.atcoder.jp/tasks/abc073_a
if '9' in input(): print('Yes')
else: print('No')
#!/usr/bin/env python3 # https://abc073.contest.atcoder.jp/tasks/abc073_a