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:
n = input()
if n.find('9') != -1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
if (n.find("9") != -1):
    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 = list(input())

if '9' in N:
    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:
s = raw_input()
if s[0] == "9":
    print "Yes"
elif s[1] == "9":
    print "Yes"
else:
    print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#https://atcoder.jp/contests/abc073/tasks/abc073_a
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:
N=list(input())
if N.__contains__('9'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=list(str(input()))
print("YNeos"["9" not in n::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


def input():
    return sys.stdin.readline()[:-1]

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


N = int(input())
if (N//10) % 10 == 9 or (N % 10) % 10 == 9:
    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:
for i in input():
  if i=="9":print("Yes");exit()
print("No")

Submission status: Accepted

Solution code:
S = list(str(input()))
if S[0] =='9' or S[1] =='9':
  print("Yes")
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:
print(("Yes","No")[input().count("9") == 0])

Submission status: Accepted

Solution code:
n=list(input())
print('Yes') if '9' in n 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:
a = input()
if a.count('9') != 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())

m=n%10
k=n//10

if m==9 or k==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:
if '9' in str(input()):
	print('Yes')
else:
	print('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:

def read_input():
    n = int(input())
    return n

def submit():
    n = read_input()

    if n // 10 == 9:
        print('Yes')
        return
    if n % 10 == 9:
        print('Yes')
        return

    print('No')

if __name__ == '__main__':
    submit()

Submission status: Accepted

Solution code:
print("Yes"if'9'in list(input())else"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:
s = input()

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

Submission status: Accepted

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

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

solve()

Submission status: Accepted

Solution code:
from functools import reduce
import math

def main():
    # 文字列の2進数を数値にする
    # '101' → '5'
    # 文字列の頭に'0b'をつけてint()にわたす
    # binary = int('0b'+'101',0)

    # 2進数で立っているbitを数える
    # 101(0x5) → 2
    # cnt_bit = bin(5).count('1')
    
    # N! を求める
    # f = math.factorial(N)

    # N の逆元
    # N_inv = pow(N,MOD-2,MOD)

    # nCr
    # Nの階乗 * rの階乗の逆元 * n-rの階乗の逆元
    
    # 切り捨て
    # 4 // 3
    # 切り上げ
    #-(-4 // 3)
    
    # 初期値用:十分大きい数(100億)
    INF = float("inf")

    # 大きな素数
    MOD = 10**9+7
    
    # 1文字のみを読み込み
    # 入力:2
    a = input().rstrip()
    # 変数:a='2'
    
    # スペース区切りで標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a, b, c, d = (int(_) for _ in input().split())  
    # 変数:a=2 b=4 c=5 d =7
    
    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a = list(int(_) for _ in input().split())
    # 変数:a = [2, 4, 5, 7]    

    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2457
    # a = list(int(_) for _ in input())
    # 変数:a = [2, 4, 5, 7]    
    if '9' in a:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    main()

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())

for i in range(2):
    if N % 10 == 9:
        print('Yes')
        quit()
    N //= 10
print('No')

Submission status: Accepted

Solution code:
n = input()
found = 0
for i in n:
        if i == "9":
                print("Yes")
                found = 1
                break

if(not found):
        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:
N=list(input())
print('Yes' if N[0]=='9' or N[1]=='9' else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
ans = 0

for i in range(0,2):
  if n[i] == '9':
    ans += 1
if ans > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n=int(input())
if n>=90 or n==9 or n==19 or n==29 or n==39 or n==49 or n==59 or n==69 or n==79 or n==89:
    print("Yes")
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:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list(input())
for i in l:
    if i == "9":
        print("Yes")
        break
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


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


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def inpm(line):
    return [inp() for _ in range(line)]


def inpfm(line):
    return [inpf() for _ in range(line)]


def inpsm(line):
    return [inps() for _ in range(line)]


def inlm(line):
    return [inl() for _ in range(line)]


def inlfm(line):
    return [inlf() for _ in range(line)]


def inlsm(line):
    return [inls() for _ in range(line)]


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper

n = input()
print('Yes' if n.count('9') >= 1 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()
flg = 0
for i in N:
    if i == '9':
        flg = 1
print('Yes' if flg == 1 else 'No')

Submission status: Accepted

Solution code:
import sys
N = input()
for x in N:
    if x == '9':
        print('Yes')
        sys.exit()

print('No')

Submission status: Accepted

Solution code:
# ABC073A - September 9
print("Yes" if "9" in input() else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
if "9" in s:
  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:
a=input()
print("Yes" if a[0]=="9" or a[1]=="9" else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = map(int,list(input()))
if 9 in N:
    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:
# encoding:utf-8
import copy
import numpy as np
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import math

N = str(input())

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

else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
if N >=90:
    print("Yes")
elif N%10 == 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:
s=input()
if s[0]=='9' or s[1]=='9':
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
print("YNeos"[not'9' in list(input())::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b=map(int,input())
if a==9 or b==9:
  print("Yes")
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 = input()
print(['No', 'Yes', 'Yes'][n.count('9')])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

num = int(input())

while num > 0:
    tmp = num % 10
    if tmp == 9:
        print('Yes')
        sys.exit()
    num = num // 10
print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()

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

Submission status: Accepted

Solution code:
a = int(input())

result = False
while a > 1:
     result = result or a%10 == 9
     a = a//10;

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

Submission status: Accepted

Solution code:
# 073 A
N = str(input())
if "9" in N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
N = input()
for i in range(2):
  if N[i] == "9":
    print("Yes")
    exit()
  else:
    continue
print("No")

Submission status: Accepted

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

n = int(input())

def digit_list(num):
    num = str(num)
    num = list(num)
    num = list(map(int,num))
    return num

n = digit_list(n)

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007

#A
n = S()
if "9" in n:
    print("Yes")
else:
    print("No")
#B

#C
"""
n = I()
d = defaultdict(int)
for i in range(n):
    a = I()
    d[a] ^= 1
d = list(d.values())
print(sum(d))
"""
#D
"""
def dfs(n,k,l,a):
    if n == 0:
        a.append(l)
    for i in range(n):
        dfs(n-1,k[:i]+k[i+1:],l+[k[i]],a)
n,m,R = LI()
r = LI()
f = [i for i in range(n)]
for i in range(R):
    r[i] -= 1
v = [[float("inf") for j in range(n)] for i in range(n)]
for i in range(n):
    v[i][i] = 0
for i in range(m):
    a,b,c = LI()
    a -= 1
    b -= 1
    v[a][b] = c
    v[b][a] = c
for k in range(n):
    for i in range(n):
        for j in range(n):
            v[i][j] = min(v[i][j],v[i][k]+v[k][j])
l = []
dfs(R,r,[],l)
ans = float("inf")
for k in l:
    d = 0
    for i in range(R-1):
        d += v[k[i]][k[i+1]]
    ans = min(ans,d)
print(ans)
"""
#E

#F

#G

#H

#I

#J

#K

#L

#M

#N

#O

#P

#Q

#R

#S

#T

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def main():
    input = sys.stdin.readline
    N = int(input())
    a = N // 10
    b = N % 10

    if a == 9 or b == 9:
        return 'Yes'
    else:
        return 'No'


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

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:
s=input()
print('Yes' if '9' in s else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
a = "No"
for ch in n:
    if ch == "9":
        a = "Yes"

print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('YNeos'[input().find('9')==-1::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

b = [int(x) for x in list(str(n))]

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

Submission status: Accepted

Solution code:
def september9(N: int)->bool:
    return N % 10 == 9 or (N//10) % 10 == 9


if __name__ == "__main__":
    N = int(input())
    yes = september9(N)
    print('Yes' if yes else 'No')

Submission status: Accepted

Solution code:
n = str(input())
print('Yes' if '9' in n else '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 "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:
print('Yes') if '9' in str(input()) else print('No')

Submission status: Accepted

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


def func(n):
    if '9' in n:
        result = 'Yes'
    else:
        result = 'No'
    return result


N = input()
print(func(N))

Submission status: Accepted

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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
if N[0] == "9":
    print("Yes")
elif 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:
s = input()
print("Yes" if '9' in s else "No")

Submission status: Accepted

Solution code:
N = [i for i in input() if i=="9"]
if len(N)!=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())
if a.count("9")==1 or a.count("9")==2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a=input()
if a.count("9")>0:
  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 N.count('9') >= 1:
  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:
N = input()

def isNine( N ):
    for i in N:
        if( i == '9' ):
            print( 'Yes' )
            return
    print( 'No' )
    return

isNine( N )

Submission status: Accepted

Solution code:
import collections
import itertools
import numpy as np
import sys
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

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

Submission status: Accepted

Solution code:
from sys import stdin
l = list(stdin.readline().rstrip())
if '9' in l:
  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=str(input())
if '9' in N:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list(input())
print("Yes") if "9" in l 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:
s=map(int, input())
print('Yes' if any([int(n)==9 for n in s]) 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:
a=input()
print("Yes") if a[0] == "9" or a[1] =="9" else print("No")

Submission status: Accepted

Solution code:
import heapq
from collections import deque
from enum import Enum
import sys
import math
from _heapq import heappush, heappop

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001


table = input()

FLG = False

for i in range(len(table)):
    if table[i] == '9':
        FLG = True
        break

if FLG == True:
    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 = input().rstrip()
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 = input()

if N.count("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 = int(input())

ans = N // 10 == 9 or N % 10 == 9

print("Yes" if ans else "No")
print()

Submission status: Accepted

Solution code:
if '9' in input(): 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=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 = str(input())
if "9" in n:
    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 "9" in N else "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:
a=input()
if(a.count("9")==0):
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
int_n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = "No"
for i in a:
    if i == "9":
        b = "Yes"
print(b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
flg = False
while 0 < N:
    if N % 10 == 9:
        flg = True
    N //= 10
print("Yes" if flg 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:
a=input()
print('Yes'if "9"in a else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(input())
ans = 0
for s in n:
    if s == '9':
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

ans = "No"

if N[0] == "9":
    ans = "Yes"
if N[1] == "9":
    ans = "Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(input())
if n.count("9")>0:
    print("Yes")
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:
def main():
  x = input()

  if x[0] == '9':
    print('Yes')
    return
  if x[1] == '9':
    print('Yes')
    return
  print('No')
  return

if __name__ == '__main__':
  main()

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:
print(['No','Yes'][input().count('9')>0])

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")>0 else "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 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=input()

if("9" in n) :
  print("Yes")
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:
# -*- coding: utf-8 -*-


def main():
    n = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = list(input())

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

Submission status: Accepted

Solution code:
print(["Yes","No"][input().count('9')==0])

Submission status: Accepted

Solution code:
N=input()
for i in range(2):
  if N[i]=="9":
    print("Yes")
    exit()
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 N.find("9")<0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N=map(str,input().replace(""," ").split())
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:
s=list(input())
print('Yes' if s[0]=='9' or s[1]=='9' else 'No')

Submission status: Accepted

Solution code:
n = input()
if n.count('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().find("9")

if n < 0:
  print("No")
else:
  print("Yes")

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:
# -*- coding: utf-8 -*-
N = str(input())
S = N.count("9")
if S == 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

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


def main():
    """Function."""
    n = str(input())
    if "9" in n:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from statistics import mean, median,variance,stdev
import sys
import math

#x = input().split()
#y = input().split()

#x = int(input())
#y = int(input())

if '9' in input():
    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:
s = input()
if s.find('9') == -1:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
N = set(input())
if "9" in N:
  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 = list(input())
l = len(N)

for i in range(l):
  if(N[i] == '9'):
    print('Yes')
    exit()
  else:
    continue
    
print('No')

Submission status: Accepted

Solution code:
n = int(input())
digit_list = []

while n > 0:
    digit_list.append(n%10)
    n //= 10

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