Problem:


Score : 100 points

Problem Statement

It is September 9 in Japan now.

You are given a two-digit integer N. Answer the question: Is 9 contained in the decimal notation of N?

Constraints

10≤N≤99

Input

Input is given from Standard Input in the following format:

N

Output

If 9 is contained in the decimal notation of N, print Yes; if not, print No.

Sample Input 1

29

Sample Output 1

Yes

The one's digit of 29 is 9.

Sample Input 2

72

Sample Output 2

No

72 does not contain 9.

Sample Input 3

91

Sample Output 3

Yes



Sample input:
29


Sample output:
Yes

Submission status: Accepted

Solution code:
a=input()

b=list(a)

b=[int(i) for i in b]

if(b[0]==9 or b[1]==9):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()

if s[0:1] == '9' or s[1:2] == '9':
        print('Yes')
else:
        print('No')

Submission status: Accepted

Solution code:
N = input().rstrip()

print('Yes' if '9' in N else 'No')

Submission status: Accepted

Solution code:
N = list(input())

f = True

for n in N:
    if n == '9':
        print('Yes')
        f = False
        break

if f == True:
    print('No')

Submission status: Accepted

Solution code:
a = list(input())
if a[0] == "9" or a[1] == "9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = input()
print("Yes" if n.count('9') > 0 else "No")

Submission status: Accepted

Solution code:
N = raw_input()
print "Yes" if int(N[0]) == 9 or int(N[1]) == 9 else "No"

Submission status: Accepted

Solution code:
ans='No'
for x in input():
    if x =='9':
        ans='Yes'
print(ans)

Submission status: Accepted

Solution code:
N = input()
 
if N[0] == '9' or N[1] == '9':
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
N = list(input())
if '9' in N:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
print("Yes") if "9" in set(list(input())) else print("No")

Submission status: Accepted

Solution code:
n=int(input())
if (n%10!=9)&(n//10!=9):
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
print('Yes'if input().count('9')>0 else'No')

Submission status: Accepted

Solution code:
N = input()

a = N.count('9')
if a == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
n=str(input())
print(('No','Yes') [n[1]=='9' or n[0]=='9'])

Submission status: Accepted

Solution code:
s = input()
f = False
for i in s:
  if i == '9':
    f = True
if f:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
N = input()
if N[0] == "9" or N[1] == "9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()

if N.count("9") >= 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()

print("Yes" if "9" in str(n) else "No")

Submission status: Accepted

Solution code:
listN = list(str(input()))
if "9" in listN:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
if N[0] == "9"or N[1] == "9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#coding: utf-8
print(["No", "Yes"]["9" in input()])

Submission status: Accepted

Solution code:
# coding:utf-8

INF = float('inf')


def inpl(): return list(map(int, input().split()))


N = int(input())


if N // 10 == 9 or N % 10 == 9:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s=input()
if s[0] == "9" or s[1]=="9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
n  = input()

if n.count('9')!=0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = int(input())

if n // 10 == 9 or n % 10 == 9:
    print("Yes")

else:
    print("No")

Submission status: Accepted

Solution code:
import sys

N = input()

for i in N:
    if i == "9":
        print("Yes")
        sys.exit()

print("No")

Submission status: Accepted

Solution code:
str = str(input())
list = list(str)
if '9' in list:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a = int(input())
if a//10 == 9:
  print("Yes")
elif a % 10 == 9:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
a = N.count('9')
if a == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
flag = False
for i in input():
   if i == '9':
       flag = True

if flag:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
if ('9' in N):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()
for i in range(len(n)):
    if n[i] == "9":
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
N=list(input())
if '9' in N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
print("Yes" if N.count("9")>=1 else "No")

Submission status: Accepted

Solution code:
a=int(input())
if a%10==9 or a//10==9:print("Yes")
else:print("No")

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]

def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def main():
    N = input()
    if "9" in N:
        print(Yes)
    else:
        print(No)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
print(['No','Yes']['9'in input()])

Submission status: Accepted

Solution code:
N=list(input())
print("Yes" if '9' in N else "No")

Submission status: Accepted

Solution code:
N = input()

for i in N:
    if i == '9':
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
if "9" in input():
    print("Yes")
else:print("No")

Submission status: Accepted

Solution code:
N = input()

if N[0] == '9' or N[1] == '9':
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
x,y=map(int,input())
if x==9 or y==9:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = input()
if "9" in N :
  	print("Yes")
else:
  	print("No")

Submission status: Accepted

Solution code:
N = input()
print('Yes' if N.count('9') else 'No')

Submission status: Accepted

Solution code:
N=int(input())
if (90<=N<=99):
  print("Yes")
else:
  if(N%10==9):
    print("Yes")
  else:
    print("No")

Submission status: Accepted

Solution code:
#73a
n=input()
print('Yes' if '9'in(n) else 'No')

Submission status: Accepted

Solution code:
N=input()
if N[0]=='9' or N[1]=='9':
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
judge = N.find("9")
if  judge != -1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
# vim: set fileencoding=utf-8 :
n = str(raw_input())

if n[0] == "9" or n[1] == "9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s=input()
if s[0]=='9' or s[1]=='9':
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = list(input())
if N.count("9") == 0 :
    print("No")
else :
    print("Yes")

Submission status: Accepted

Solution code:
N = list(input())

if '9' in N:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
N = input()
if N[0]=="9":
    print("Yes")
elif N[1]=="9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

def main():
    n = input()
    for i in n:
        if i == '9':
            print('Yes')
            exit()
    print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = list(input())
if N[0] == '9' or N[1] == '9':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()
if n.count('9') >= 1: print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
if input().count('9') > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
if '9' in str(N):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a = list(input())

if a[0]=='9' or a[1]=='9':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()
print('Yes' if ('9' in n) else 'No')

Submission status: Accepted

Solution code:
num = input()
print("Yes" if num[0] == "9" or num[1] == "9" else "No")

Submission status: Accepted

Solution code:
#coding:utf-8
n=int(input())
if(n%10==9):
  print("Yes")
elif(int(n/10)==9):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
print "Yes" if '9' in raw_input() else "No"

Submission status: Accepted

Solution code:
n=input()
if n.count("9")>=1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = list(input())
if N.count("9") >= 1:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
n=str(input())
if n[0]=="9" or n[1]=="9":
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
a=int(input())
x=int(a%10)
y=int(a//10)

if x==9:
  print("Yes")
elif y==9:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=int(input())

a=N%10
b=N//10

if a==9 or b==9:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=input()
ans=False
for i in range(len(N)):
  if N[i]=='9':
    ans=True
    break
if ans:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n = str(input())

if "9" in n:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
num = input()
print( "Yes" if( num[0] == '9' or num[1] == '9') else "No" );

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

N = input()

if N.find("9") != -1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a=list(input())
if a.count("9")!=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()

if(N[0] == '9' or N[1] == '9'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=int(input())

if n%10==9 or n//10==9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())

if N % 10 == 9 or (N // 10) % 10 == 9:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a=int(input())
if a//10==9 or a%10==9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = list(input())
if '9' in N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=input()
print('Yes' if n[0]=='9' or n[1] == '9' else 'No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

n = input()
if n[0] == '9' or n[1] == '9':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# input
N_lst = [int(x) for x in list(input())]

if N_lst[0] == 9 or N_lst[1] == 9:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=int(input())
print("Yes" if (n%10==9 or n//10==9) else "No")

Submission status: Accepted

Solution code:
N = list(map(int, list(input())))
if 9 in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()

if '9' in N:
    print('Yes')
    
else:
    print('No')

Submission status: Accepted

Solution code:
q = int(input())
if(q//10 is 9 or q%10 is 9):print("Yes")
else:print("No")

Submission status: Accepted

Solution code:
N=input()

if "9" in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a=int(input());print("Yes" if a//10==9 or a%10==9 else "No")

Submission status: Accepted

Solution code:
a = input()    
if a[0] == '9':
    print('Yes')
elif a[1] == '9':
    print('Yes')
else :
    print('No')

Submission status: Accepted

Solution code:
ina = input()
if ina[0] == "9" or ina[1] == "9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()

isnine = False

for i in range(len(N)):
    if N[i]=="9":
        isnine = True

if isnine:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
numlist = list(map(int, str(input())))
if numlist.count(9) > 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
n=input()
print("Yes" if n[0]=="9" or n[1]=="9" else "No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

n = input()

if n[0] == "9" or n[1] == "9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()

n = ns()
flag = 0
for i in n:
    if i == "9":
        flag = 1
if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
if N[0] =="9" or N[1] == "9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def judge(s):
	if s[0] == '9' or s[1] == '9': return 'Yes'
	else: return 'No'

print judge(raw_input())

Submission status: Accepted

Solution code:
N = input()
if '9' in N:
    print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
n = list(input())

for i in range(len(n)):
    if n[i] == "9":
        print("Yes")
        break
    else:
        continue
else:
    print("No")

Submission status: Accepted

Solution code:
if 9 in list(map(int, input())): print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
a=input()
if a/10==9 or a%10==9:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
n = int(input())
if n % 10 == 9 or n // 10 == 9:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
print("Yes") if "9" in list(input()) else print("No")

Submission status: Accepted

Solution code:
N=(input())
if N[0]=='9' or N[1]=='9':
    print ('Yes')
else:
    print ('No')

Submission status: Accepted

Solution code:
N = input()
print("Yes" if N.count("9") else "No")

Submission status: Accepted

Solution code:
a = int(input())
print(["No", "Yes"][a//10 == 9 or a%10 == 9])

Submission status: Accepted

Solution code:
a=input()
if a[1]=='9'or a[0]=='9':print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
a = int(input())
if a//10 ==9 or a % 10 ==9:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
ans = 'Yes' if input().count('9') > 0 else 'No'
print(ans)

Submission status: Accepted

Solution code:
n = input()
if '9' in n:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
print('Yes') if '9' in n else print('No')

Submission status: Accepted

Solution code:
N = input()
for i in N:
    if i=='9':
        print('Yes')
        break
else:
  print('No')

Submission status: Accepted

Solution code:
if '9' in input(): print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
day = input()

if int(day[0] )== 9 or int(day[1]) == 9:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
str_list = list(input())
if (str_list[0]!="9") and (str_list[1]!="9"):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
n = input()
if(n[0]=='9' or n[1]=='9') :
    print('Yes')
else :
    print('No')

Submission status: Accepted

Solution code:
N = input()

if '9' in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=int(input())
if 90<=N<100:
    print("Yes")
elif (N+1)%10==0:
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
s = input()

if s[0] == '9' or s[1] == '9':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

n = arr_data[0][0]


print("Yes"   if "9"  in n else "No")

Submission status: Accepted

Solution code:
n = input()
if any(i=="9" for i in n): print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
N=int(input())
if N%10==9 or int(N/10)==9:print("Yes")
else:print("No")

Submission status: Accepted

Solution code:
a=list(input())
if a[0]=="9" or a[1]=="9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a=list(input())
if a[0]!="9" and a[1]!="9":
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
N = input()
if (N[0] != '9') and (N[1] != '9'):
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
#-*- coding: utf-8 -*-
print(['No', 'Yes']['9' in input()])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    number = list(map(int, input()))

    if number.count(9):
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
#/usr/bin/env python
n = input()
if '9' in set(n):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
if (N % 10) == 9 or N >= 90:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(raw_input())

print "Yes" if (N % 10 == 9) or (N / 10 == 9) else "No"

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
N = input()
if "9" in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(10000)

# Debug output
def chkprint(*args):
    names = {id(v):k for k,v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args))

# Binary converter
def to_bin(x):
    return bin(x)[2:]

# Set 2 dimension list
def dim2input(N):
    li = []
    for _ in range(N):
        li.append(input().split())
    return li

# --------------------------------------------

dp = None

def main():
    N = input()

    if N.count("9") >= 1:
        print("Yes")
    else:
        print("No")

main()

Submission status: Accepted

Solution code:
n=int(input())
if int(n/10)==9 or n%10==9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
for i in range(len(n)):
    if n[i] == '9':
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
if int(n/10) == 9 or int(n%10) == 9:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
print('Yes' if N[0] == '9' or N[1] == '9' else 'No')

Submission status: Accepted

Solution code:
a=input()
if(a[0]=="9"):
  print("Yes")
elif(a[1]=="9"):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()
if N.find("9") != -1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
if(N.count('9') >= 1):
   print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=input()
if '9' in n:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=list(map(int,input()))
if 1<=n.count(9):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
flag = 0
for i in N:
    if i == "9":
        flag = 1

if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print('Yes' if input().count('9')>= 1 else 'No')

Submission status: Accepted

Solution code:
print(("No","Yes")["9"in input()])

Submission status: Accepted

Solution code:
print("YNeos"[1-("9"in input())::2])

Submission status: Accepted

Solution code:
xs = input()
if '9' in xs:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N=list(input())

if N[0]=='9' or N[1]=='9':
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
l = str(raw_input())

l = list(l)
if "9" in l:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
a = input()
if "9" in a:
  print("Yes")
else :
  print("No")

Submission status: Accepted

Solution code:
n = int(input())
if n / 10 == 9 or n % 10 == 9 or n >= 90:
  print("Yes")
else :
  print("No")

Submission status: Accepted

Solution code:
print("Yes") if input().count("9")>0 else print("No")

Submission status: Accepted

Solution code:
n = input()
import sys
for c in n:
    if c == '9':
        print('Yes')
        sys.exit(0)

print('No')

Submission status: Accepted

Solution code:
if "9" in list(input()):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=list(input())
if '9' in n:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()
if(n[0] == '9' or n[1] == '9'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=input();N_list=list(N);print(['No','Yes']['9' in N_list])

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 19 09:31:04 2017

@author: kotania
"""

N = input()

if int(N) > 89 :
    print("Yes")
elif N[1] == "9":
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8

n = input()
if "9" in n:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())

if N >= 90:
    print("Yes")
elif (N+1)%10 is 0:
    print("Yes")
else:
     print("No")

Submission status: Accepted

Solution code:
num = input()
print("Yes" if num.count("9") > 0 else "No")

Submission status: Accepted

Solution code:
import math
N = int(input())

if (N % 10) == 9 or math.floor(N/10) == 9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
if "9" in input():
   print("Yes")
else:
   print("No")

Submission status: Accepted

Solution code:
N = int(input())

if int(N/10)==9 or N%10==9:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python

def main():
    for c in list(input()):
        if c == '9':
            print("Yes")
            exit()
    print("No")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = input()
s = len(n)
a = 0
for i in range(s):
	if n[i] == '9':
		print('Yes')
		a = 1
		break
if a == 0:
	print('No')

Submission status: Accepted

Solution code:
N = int(raw_input())
lis = list(str(N))
if "9" in lis:
	print "Yes"
else:
	print "No"

Submission status: Accepted

Solution code:

n = raw_input()

n_dec = int(n) / 10
n_one = int(n) % 10

if(n_one == 9):
    print("Yes")
elif(n_dec == 9):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=input()
if n[0]=="9" or n[1]=="9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a = input()
if(a[0] == "9" or a[1] == "9"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
l = list(n)
if l[0] == "9" or l[1] == "9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
number = input()
number_sepalated = [int(i) for i in list(str(number))]

if max(number_sepalated) == 9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
if "9" in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()

if '9' in N:
	print('Yes')
	
else:
	print('No')

Submission status: Accepted

Solution code:
N = input()
lst = list(N)
if "9" in lst:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = str(input())
if n.find("9") != -1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = input()
a = list(x)

import math
if a[0] == "9" or a[1] == "9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = raw_input()
if '9' in n:
	print 'Yes'
else:
	print 'No'

Submission status: Accepted

Solution code:
x = input()
print("Yes" if x[0] == "9" or x[1] == "9" else "No")

Submission status: Accepted

Solution code:
arr = list(input())
print("Yes" if "9" in arr else "No")

Submission status: Accepted

Solution code:
a = list(map(int,list(input())))
if (a[0] == 9 or a[1] == 9):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a = int(input())
 
if (a//10 == 9 or a%10 == 9):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=input()
if "9" in n :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = raw_input()
print "Yes" if "9" in N else "No"

Submission status: Accepted

Solution code:
#!/usr/bin/python3

n = input()

for i in n:
    if i == '9':
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
a = input()
b = int(a[0])
c = int(a[1])
if b==9 or c==9:
 print("Yes")
else:
 print("No")

Submission status: Accepted

Solution code:
N = input()

if '9' in str(N):
    x = 'Yes'
else:
    x = 'No'

print(x)

Submission status: Accepted

Solution code:
print("Yes" if ("9" in list(input())) else "No")

Submission status: Accepted

Solution code:
n=str(input())
if '9' in n:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
if((input().find('9')) != -1):
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = int(input())
if int(N/10)==9:
    print("Yes")
elif int(((N-9)%10)) == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=str(input())
if '9' in n:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()
print("Yes") if n.count('9') else print("No")

Submission status: Accepted

Solution code:
n = input()

if n.count('9') > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N= int(input())
n=[]
j=9
c=0
while N!=0:
    n.append(N%10)
    N//=10
n.reverse()

for i in range(len(n)):
    if n[i-1]==j:
        c+=1

if c > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
i = input()

flag = False
for j in i:
    if j == '9':
        flag = True
        break

print('Yes' if flag else 'No')

Submission status: Accepted

Solution code:
n = input()


if n[0] == '9' or n[1] == '9':
        print("Yes")
else:
        print("No")

Submission status: Accepted

Solution code:
S = input()

if '9' in list(S):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
N = list(input())
for tmp in N:
    if tmp == '9':
        print("Yes")
        sys.exit()
    else:
        pass
print("No")

Submission status: Accepted

Solution code:
n = input()

check = 0
for i in n:
    if i == "9":
        check = 1
        break

if check == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = str(input())

ans = 0
for i in range(len(x)):
    if int(x[i]) == 9:
        ans = 1
        break
if ans==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8


def main():
    n = raw_input()
    for i in n:
        if i == "9":
            print "Yes"
            return
    print "No"

main()

Submission status: Accepted

Solution code:
#! /bin/python
# coding:utf-8

import itertools

N = raw_input()

if (N.find('9') == -1):
    print "No"
else:
    print "Yes"

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    i = 0
    N = int(input())
    if N-90>0:
        i = 1
    x = (N-9)/10
    if x == int(x):
        i = 1
    if i == 1:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
a = int(input())
if a%10==9 or math.floor(a/10)==9:
    print ("Yes")
else:
    print ("No")

Submission status: Accepted

Solution code:
def solve(s):
    if "9" in s:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    s = input()
    solve(s)

Submission status: Accepted

Solution code:
N = int(input())
if N%10 == 9 or N // 10 == 9:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
x = input()
if '9' in x:
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
if N % 10==9 or N >=90 :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = map(int,input())

if 9 in S:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = input()
pos = s.find('9')
if pos != -1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def September_9():
    try:
        LOCAL_FLAG
        N = "19"
    except NameError:
        N = input()
    if '9' in N:
        print("Yes")
    else:
        print("No")
        
September_9()

Submission status: Accepted

Solution code:
if '9' in input():
 print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a = raw_input()
if '9' in a:
 print 'Yes'
else:
 print 'No'

Submission status: Accepted

Solution code:
N = input()
if '9' in N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
if [1 for c in input() if c == '9']:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()

if N%10 == 9:
	print('Yes')
elif N/10 == 9:
	print('Yes')
else :
	print('No')

Submission status: Accepted

Solution code:
a = input()
if a.find("9") != -1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

if int(n/10)==9:
    print("Yes")
elif n%10==9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print(input().count("9")and"Yes"or"No")

Submission status: Accepted

Solution code:

s = input()

if '9' in s:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=str(input())
if N[0]=="9" or N[1]=="9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
if N+10 >= 100 or (N+1) % 10 == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = raw_input()
N = int(N)

num10 = N/10
num1 = N - num10*10

if num10 == 9 or num1 == 9:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
import collections

# デバッグ用
DEBUG = False
# DEBUG = True

# 宣言
result = 'No'

# 入力部
if DEBUG:
    N = '99'
else:
    N = input()

# 処理部
if N.find('9') >= 0:
    result = 'Yes'
else:
    result = 'No'

# 出力部
print(result)