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()
for i in n:
    if i == '9':
        print('Yes')
        exit()
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:
if "9" in set(list(input())):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
sN = str(N)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
from fractions import gcd
# import queue
# from collections import Counter
# from itertools import accumulate
# from functools import reduce

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

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""
# 標準入力取得
## 文字列
 = sys.stdin.readline().rstrip()
 = list(sys.stdin.readline().rstrip())

## 数値
 = int(sys.stdin.readline())
 = map(int, sys.stdin.readline().split())
 = list(map(int, sys.stdin.readline().split()))
 = [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""
N = int(sys.stdin.readline())

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

print("No")

Submission status: Accepted

Solution code:
N = int(input())

count = 1
for n in str(N):
    if n == '9':
        print('Yes')
        break
    else:
        if count == len(str(N)):
            print('No')
        else:
            count += 1

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    

S=input()

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

Submission status: Accepted

Solution code:
n=input()
a=0
for i in range(len(n)):
    if n[i]=="9":
        a+=1
if a!=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

n = list(input())

if n.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 = 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:
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 = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
if N[0] == '9' or N[1] == '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:
def resolve():
    n = input()
    print("Yes" if "9" in n else "No")


if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

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:
n = str(input())
print("Yes" if n.count("9") >= 1 else "No")

Submission status: Accepted

Solution code:
N = str(input())

n = list(N)

if n[0] == '9' or n[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:
n=str(input())
print('Yes') if n[0]=='9' or n[1]=='9' 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:
print('Yes' if '9' in input().strip() else 'No')

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

def main():
    N = input().strip()

    ok = False
    for c in N:
        if c == "9":
            ok = True
            break
    
    if ok:
        print("Yes")
    else:
        print("No")



if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-S
N = list(str(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 print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

print('Yes' if n.count('9') >=1 else 'No')

Submission status: Accepted

Solution code:
import sys
import copy
import  math
import bisect
from collections import *
from operator import itemgetter
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
print('Yes' if 89 <= n <= 99 or 9 == n % 10 else '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 = int(input())
if N//10==9 or N%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:
def nine(N):
    for n in N:
        if n is "9":
            return "Yes"
    return "No"
print(nine(input()))

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 "No")

Submission status: Accepted

Solution code:
def main():
    N = input()
    if "9" in N:
        return "Yes"
    return "No"



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

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())
l = [19, 29, 39, 49, 59, 69, 79, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]
bl = False
for i in l:
    if N == i:
        bl = True
        break
if bl:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input()
if x[0] =='9' or x[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:


def main():

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

if __name__== "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("Yes" if "9" in {i for i in input()} else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

for i in s:
  if int(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:
s = input()
if s.count("9"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=list(input())
flag=0

for i in range(0,2):
    if int(N[i])==9:
        flag+=1
    
if flag==0:
    print('No')
else :
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    test()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(input())

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

Submission status: Accepted

Solution code:
print("Yes" if "9" in 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:
print("Yes" if "9" in list(input()) else "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:
# x,t=map(int,input().split())
n=input()

if int(n[0])==9 or int(n[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:
print("NYoe s"["9"in input()::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
#ABC074
n = input()
if n[0] == '9' or n[1] == '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:
N=input()
if N[0] == '9' or N[1] == '9':
  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:
n = input()
if n.count('9') >= 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:

if __name__ == '__main__':

  N = set(list(input()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#73

N = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


def yes():
    print("Yes")  # type: str


def no():
    print("No")  # type: str


def solve(N: int):
    if "9" in str(N):
        yes()
    else:
        no()
    return


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N=str(input())
l=[x for x in N]
if "9" in l:
    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:
s = input()
if s[0]=='9' or s[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:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math

# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev

def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    N = input()
    
    if N[0] == "9":
        print("Yes")
        sys.exit()
    if N[1] == "9":
        print("Yes")
        sys.exit()
    else:
        print("No")
    
		
            	
if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
a=int(input())
b=a//10
c=a-b*10
if c==9 or b==9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = input()
if x[0] == '9' or x[-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:
s = input().rstrip()
if any(('9' == i for i in s)):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
#n = int(input())
#a = int(input())
#ls = list(input().split(" "))
#ls = list(map(int,input().split(" ")))
#a,b,c = list(map(int,input().split(" ")))
string = input()

for i in string:
  if i == "9":
    print("Yes")
    quit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

flag = 0
for x in N:
    if x == "9":
        flag = 1
        break
if flag == 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
n = int(input())
if (n >= 90) | (n%10 == 9) : print('Yes')
else : print('No')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
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 = list(input())
if "9" in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())
n = list(str(n))
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 "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()

nCnt = 0
nCnt += N.count('9')

if nCnt != 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = list(input())

if '9' in s:
  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
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007

#A
def A():
    s = S()
    if "9" in s:
        print("Yes")
    else:
        print("No")
    return

#B
def B():
    return

#C
def C():
    n = II()
    A = {}
    for i in range(n):
        k = II()
        if not k in A:
            A[k] = 1
        else:
            A[k] += 1
    ans = 0
    for item in A.values():
        ans += item % 2
    print(ans)
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Accepted

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

# input
N = input()

# solve
ans = 'Yes' if N.count('9') >= 1 else 'No'

# output
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC073-A
N = input()
if N[0] == '9' or N[1] == '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:
x=input()

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

Submission status: Accepted

Solution code:
N = int(input())
ans = 'No'

if(N//10 == 9):
    ans = 'Yes'
if(N%10 == 9):
    ans ='Yes'
print(ans)

Submission status: Accepted

Solution code:
a = input()
for i in range(len(a)):
    if a[i] == "9":
        print("Yes")
        exit()
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 "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" == N[0] or "9" == N[1]:
    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:
value = int(input())
if value // 10 == 9 or value % 10 == 9:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
def print_ans(N):
  """
  Parameters
  --------------
  >>> print_ans("99")
  Yes
  >>> print_ans("19") 
  Yes
  >>> print_ans("17")
  No
  """
  if N[0] == "9" or N[1] == "9":
    print("Yes")
  else:
    print("No")
  

def main():
  N = input()
  print_ans(N)


if __name__ == '__main__':
  main()

Submission status: Accepted

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

N = input()
if N[0] == '9' or N[1] == '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:
# coding: utf-8
# Your code here!

N = input()

# print(N)

# print(N[0] == '9')
# print(N[1] == '9')

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 int(N/10)==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:
n = input()
print('Yes' if "9" in n else 'No')

Submission status: Accepted

Solution code:
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

N = s()

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: str):
    if N.__contains__('9'):
        print(YES)
    else:
        print(NO)

    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = str(next(tokens))  # type: str
    solve(N)


if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=list(input())
if int(n[0])==9 or int(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:
def main():
    print('YNeos'[not input().count('9')::2])


main()

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:
if "9" in list(input()):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
n=input()
k=n.count("9")
if k==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:
x=int(input())
a=x//10
b=x%10
if a==9 or b==9:
  print("Yes")
else:print("No")

Submission status: Accepted

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


abc()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
try:
    N.index("9")
    print("Yes")
except ValueError:
    print("No")

Submission status: Accepted

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

s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str

def solve(N: int):
    if N % 10 == 9 or N // 10 == 9:
        ret = YES
    else:
        ret = NO
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
# 　　  ⋀_⋀　 
#　　  (･ω･)  
# .／ Ｕ ∽ Ｕ＼
#  │＊　合　＊│
#  │＊　格　＊│ 
#  │＊　祈　＊│ 
#  │＊　願　＊│ 
#  │＊　　　＊│ 
#      ￣
#
import sys
input=sys.stdin.readline
from math import floor,ceil,sqrt,factorial
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict
inf=float('inf')
mod = 10**9+7
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    N = ST()
    print("YNeos"["9" not in N::2])
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = input()

if(N.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:
print(["No", "Yes"]["9" in input()])

Submission status: Accepted

Solution code:
x = input()
if '9' in x:
    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 = list(input())
a = N.count('9')

if a != 0:
    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:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str

def solve(N: int):
    print("YNeos"["9" not in str(N)::2])
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# sys.stdin.readline()
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = input()
result = 0
for i in N:
    if int(i) == 9:
        result += 1
if result >= 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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