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

Solution (Python):


import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni      = lambda: int(ns())
nin     = lambda y: [ni() for _ in range(y)]
na      = lambda: list(map(int, stdin.readline().split()))
nan     = lambda y: [na() for _ in range(y)]
nf      = lambda: float(ns())
nfn     = lambda y: [nf() for _ in range(y)]
nfa     = lambda: list(map(float, stdin.readline().split()))
nfan    = lambda y: [nfa() for _ in range(y)]
ns      = lambda: stdin.readline().rstrip()
nsn     = lambda y: [ns() for _ in range(y)]
ncl     = lambda y: [list(ns()) for _ in range(y)]
nas     = lambda: stdin.readline().split()

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

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

Solution (Python):
N=input()

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

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

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

Solution (Python):
import math

N=input()

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

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

Solution (Python):
N = int(input())

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

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

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

Solution (Python):



N = input()


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

Solution (Python):
n=input()
if n.find("9") >= 0:
    print("Yes")
else:
    print("No")

Solution (Python):
N = input()

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

Solution (Python):
s = input()

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

Solution (Python):
import sys
input = sys.stdin.readline
S = input()
if "9" in S: print("Yes")
else: print("No")

Solution (Python):
s = input()
if '9'in s:
  print('Yes')
else:
  print('No')

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

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

Solution (Python):
l = input()
if '9' in l:
  print("Yes")
else:
  print("No")

Solution (Python):
n = input()

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

Solution (Python):
n = str(input())
cnt = 0
for i in n:
    if i == "9":
       cnt += 1
if cnt >= 1:
    print("Yes")
else:
    print("No")

Solution (Python):
n = int(input())
ans = "No"
while n:
    q, r = divmod(n, 10)
    if r == 9:
        ans = "Yes"
        break
    n = q
print(ans)

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

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

Solution (Python):

n=input()
flag=False
for c in n:
    if c=="9":
        flag=True
        break
if flag:
 	print("Yes")
else:
 	print("No")

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

Solution (Python):
n = list(input())

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

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

Solution (Python):
N = input()

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

Solution (Python):
n = input().strip()
if int(n[0]) == 9 or int(n[1]) == 9:
    print("Yes")
else:
    print("No")

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

Solution (Python):

def main():
    import sys
    
    sys.setrecursionlimit(10000000)
    from collections import Counter, deque
    
    from itertools import combinations, permutations
    
    from bisect import bisect_left,bisect_right
    from math import floor, ceil
    

    

    s = input().rstrip()
    for i in s:
        if i=='9':
            print('Yes')
            exit()
    print('No')
    
if __name__ == '__main__':
    main()

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

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

Solution (Python):
c=input()
if "9" in c:
    print("Yes")
else:
    print("No")

Solution (Python):
N=input()
number=0
for a in N:
    if int(a)==9:
        print('Yes')
        break
    else:
        number+=1
if number==2:
    print('No')

Solution (Python):
n = input()

def main(num):
    for i in num:
        if i == '9':
            return 'Yes'
    else:
        return 'No'

print(main(n))

Solution (Python):
N = list(input())

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

Solution (Python):

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

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

Solution (Python):
import sys
ss=input().strip()
for s in ss:
  if s=="9":
    print("Yes")
    sys.exit()
print("No")

Solution (Python):
n = input()
f = 0

for i in range(len(n)):
    if n[i] in '9':
        f = 1
    
if f == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
S=input()
if '9' in S:
  print('Yes')
else:
  print('No')

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

Solution (Python):
arr = map(int, raw_input())
n = len(arr)

for i in range(n):
    if arr[i] == 9 or arr[i-1] == 9:
        print "Yes"
        break
    else:
        print "No"
        break

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

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

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

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

Solution (Python):
N=input()
for i in N:
    if(i=='9'):
        print("Yes")
        exit()
print('No')

Solution (Python):
N = input()

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

print("No")

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

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

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

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

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

Solution (Python):

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

Solution (Python):
n = input()

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

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

Solution (Python):

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    N=I()
    if N%10==9 or N//10==9:
        print("Yes")
    else:
        print("No")

main()

Solution (Python):
s=str(input())
if s[0]!='9':
    if s[1]=='9':
        print("Yes")
    else:
        print("No")
else:
    print("Yes")

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

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

Solution (Python):
print(" YNeos"["9" in input()::2].strip())

Solution (Python):
n = int(input())

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

Solution (Python):


N_str = input().strip()

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

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

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

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

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

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

Solution (Python):
a = list(map(int, list(input())))
if all(a[i]!=9 for i in range(len(a))):
    print("No")
else:
    print("Yes")

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

Solution (Python):

N=list(input())

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

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

Solution (Python):
S = list(map(int, input()))

flg = 0

for s in S:
  if s == 9:
    flg = 1
    
if flg:
  print("Yes")
else:
  print("No")

Solution (Python):
b = list(input())
num = 0
for i in b:
    if i == "9":
        num = 1
        break
if num == 1:
    print("Yes")
else:
    print("No")

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

Solution (Python):
num=list(input())
num.sort()
print("Yes" if num[-1] == "9" else "No")

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

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

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

Solution (Python):
n = input()
c = 0
for i in n:
    if i == "9":
        c = 1
if c == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
def main():
    print("Yes" if "9" in input() else "No")


if __name__ == '__main__':
    main()

Solution (Python):
N = input()

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

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

Solution (Python):
n = input()

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

Solution (Python):
N = str(input())

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

Solution (Python):
N = str(input())

c = N.find('9')

if c >= 0:
  print('Yes')
else:
  print('No')

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

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

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

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

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

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

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

Solution (Python):
def september9(n):

    return "Yes" if n[0] == "9" or n[-1] == "9" else "No"

def main():
    n = str(input())
    print(september9(n))

if __name__ == '__main__':
    main()

Solution (Python):
N=input()

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

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

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

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

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

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

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

Solution (Python):
n = input()

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

Solution (Python):
n = input()

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

Solution (Python):
n = input()

for i in n:
  if i == '9':
    print('Yes')
    break
else:
  print('No')

Solution (Python):
print('YNeos'[input().count('9')<1::2])

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

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

Solution (Python):
print(["No","Yes"][input().count("9")>0])

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

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

Solution (Python):
print('YNeos'['9' not in input()::2])

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

Solution (Python):
N = str(input())
p = "9"
if N.count(p) == 0:
    print("No")
else:
    print("Yes")

Solution (Python):
n = input()

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

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

Solution (Python):

N = input()


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

Solution (Python):
a = input()

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

Solution (Python):

a = int(input())
flg = 0
while a > 0:
	if a % 10 == 9:
		print("Yes")
		flg = 1
		break
	else:
		a = int(a / 10)
if flg == 0:
	print("No")

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

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

Solution (Python):
N = int(input())
s = str(N)
for i in range(len(s)):
    if s[i]=="9":
        print("Yes")
        exit()

print("No")

Solution (Python):
x=int(input())

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

Solution (Python):
n = input()

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

Solution (Python):
print('NYoe s'['9' in input()::2])

Solution (Python):
N=input()
N1=int(N[0])
N2=int(N[1])
print("Yes" if N1==9 or N2==9 else "No")

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

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

Solution (Python):
s = input()
for i in range(len(s)):
    if s[i] == "9":
        print("Yes")
        quit()
print("No")

Solution (Python):
S = input()
a = [S[0],S[1]]
ans = 'No'
if '9' in a:
    ans = 'Yes'
print(ans)

Solution (Python):




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


if __name__ == "__main__":
    main()

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

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

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

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

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

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

Solution (Python):
N=input()
l=list(N)
l.sort(reverse=True)

if (l[0]=="9"):
    print("Yes")
else:
    print("No")

Solution (Python):
def main():
    print("Yes" if "9" in input() else "No")

main()

Solution (Python):
"""
author : halo2halo
date : 30, Jan, 2020
"""

import sys


import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

N = readline().decode('utf8')

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

Solution (Python):
s=input()
if "9" in s:
  print("Yes")
else:
  print("No")

Solution (Python):
x = map(int, list(input()))
result = 'No'

for xi in x:
  if xi == 9:
    result = 'Yes'

print(result)

Solution (Python):
s = input()
print("Yes" if "9" in s else "No")

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

Solution (Python):
n = input()
for c in n:
  if(int(c) == 9):
    print("Yes")
    exit()
print("No")

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

Solution (Python):
n=[]
n=input()
if '9' in n:
    print('Yes')
else:
    print('No')

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

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

Solution (Python):
n = int(input())
s = list(str(n))
flag = False
for i in range(len(s)):
    if s[i] == '9':
        flag = True

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

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

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

Solution (Python):
N = input()

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

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

Solution (Python):
c = str(input())
if "9" in c:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
s = input()

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

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

Solution (Python):
print("YNeos"["9" not in input()::2])

Solution (Python):
s = input()
for i in s:
  if i == '9':
    print('Yes')
    exit()
print('No')

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

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

Solution (Python):
n=str(input())
word=[i for i in n]
for i in n:
    if "9" in n:
        print("Yes")
        exit()
print("No")

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

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

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

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

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = input()

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

Solution (Python):


import numpy as np


print("Yes"if('9' in input()) else "No")

Solution (Python):


import numpy as np

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

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

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

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

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

Solution (Python):
n=input()

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

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

Solution (Python):
n = input()

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

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

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

Solution (Python):
n = input()

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

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

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

Solution (Python):
n=input()

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

Solution (Python):
N = input() 
N = list(N)
ans = "No"
for n in N:
  if n =="9":
    ans = "Yes"
print(ans)

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

Solution (Python):
nStr = input()

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

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

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

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

Solution (Python):
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def gcd(a,b): 
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def lcm(a,b): 
    return a/gcd(a,b)*b

def divisors(a): 
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): 
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): 
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

def prime_fact(a): 
    sqrt = math.sqrt(a)
    res = []
    i = 2
    if is_prime(a):
        res.append(a)
    else:
        while a!=1:
            while a%i==0:
                res.append(i)
                a //= i
            i += 1
    return res

def main():
    n = input()
    for i in range(len(n)):
        if n[i]=='9':
            print('Yes')
            return
    print('No')
    return

if __name__=='__main__':
    main()

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

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

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

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

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

Solution (Python):
s = input()
print('Yes' if '9' in s else 'No' )

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

Solution (Python):
import sys
input = sys.stdin.readline
N = list(input())
if "9" in N:
    print("Yes")
else:
    print("No")

Solution (Python):
n = list(input())

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

Solution (Python):
n = input()
n1 = int(n[0])
n2 = int(n[1])

if n1 == 9 or n2 == 9:
  print('Yes')
else:
  print('No')

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

Solution (Python):
a,b=input()
if a=="9" or b=="9":
    print("Yes")
else:
    print("No")

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

Solution (Python):
n = list(str(input()))
for i in n:
    if i == '9':
        print('Yes')
        exit()
print('No')

Solution (Python):
n = [x for x in input()]
if ('9' in n):
   print('Yes')
else:
   print('No')

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

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

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

Solution (Python):
n = str(input())
li = set(list(n))
if '9' in li:
    print('Yes')
else:
    print('No')

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

Solution (Python):
print('Yes' if input().count('9') else 'No')

Solution (Python):
N = list(input())


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

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

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

Solution (Python):
a=int(input())
if a>=90 or a%10==9:
  print('Yes')
else:
  print('No')

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

Solution (Python):
c = input()
print("Yes" if "9" in c else "No")

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

Solution (Python):
N=int(input())
print('Yes' if N%10==9 or 90<= N <=99 else'No')

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

Solution (Python):
N = input()

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

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

Solution (Python):
import sys

n = set(sys.stdin.readline().rstrip())

def main():
    return 'Yes' if '9' in n else 'No'

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
print('YNeos'[input().count('9')==0::2])

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

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

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

Solution (Python):
n = str(input())

for i in range(2):
    if n[i] == '9':
        print('Yes')
        break

else:
    print('No')

Solution (Python):
import math

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

Solution (Python):
import math

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

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

Solution (Python):
s = input()
if s[0] == "9":
  ans = 'Yes'
elif s[1] == '9':
  ans = 'Yes'
else:
  ans = 'No'
print(ans)

Solution (Python):
s = input()

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

Solution (Python):
n = sorted(list(input()))
if n[1] == "9":
    print("Yes")
else:
    print("No")

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

Solution (Python):
N = str(input())

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

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

Solution (Python):
import sys

stdin = sys.stdin
 
ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split()))
rs = lambda: stdin.readline().rstrip()  

N = ri()
print('Yes' if str(N).find('9') >= 0 else 'No')

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

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

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

Solution (Python):
n = str(input())
if '9' in n:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Solution (Python):
s=input()
if "9" in s:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
n = input()

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

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

Solution (Python):
n = input()

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

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

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

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

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

Solution (Python):

a = lambda x: list(map(int,x))
a = a(input())
if  9 in a:
  print('Yes')
else:
  print('No')

Solution (Python):
n=list(input())
ans="No"
for i in range(2):
    if n[i]=="9":
        ans="Yes"
        break
print(ans)

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

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

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

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

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

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

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

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

Solution (Python):
N = input()

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

Solution (Python):
n=input()

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

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

Solution (Python):
n = input()

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

Solution (Python):




n = int(input())



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

Solution (Python):
print(" YNeos"['9'in input()::2])

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

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

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

Solution (Python):
N = input()

if "9" in N:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Solution (Python):
S = input()

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

Solution (Python):

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

n = list(input())
print('YNeos'[not '9' in n::2])

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

Solution (Python):


N=input()

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

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

Solution (Python):
N = [c for c in input()]
count = 0
for i in N:
    if i == "9":
        count += 1
if count > 0:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

Solution (Python):


N = str(input())



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

Solution (Python):
from sys import stdin
from itertools import accumulate

n = int(stdin.readline().rstrip())

s = str(n)

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

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

Solution (Python):

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

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

Solution (Python):
import sys
input = sys.stdin.readline
N = list(input())[: - 1]
if N[0] == "9" or N[1] == "9":
  print("Yes")
else: print("No")

Solution (Python):
print("Yes" if sum([x=="9" for x in list(input())]) else "No")

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

Solution (Python):
a=input()
if '9' in a:
    print('Yes')
else:
    print('No')