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 = str(input())

c = N.find('9')

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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[0]=='9' or S[1]=='9':
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
# 入力 : 数字（文字列として扱う）
N = input()

# 出力 : 9が含まれるかどうか
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")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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")

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:
N = int(input())
s = str(N)
for i in range(len(s)):
    if s[i]=="9":
        print("Yes")
        exit()

print("No")

Submission status: Accepted

Solution code:
x=int(input())

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 30, Jan, 2020
"""

import sys

# import itertools
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
for c in n:
  if(int(c) == 9):
    print("Yes")
    exit()
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=[]
n=input()
if '9' in n:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = str(input())
if "9" in c:
    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("YNeos"["9" not in input()::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:


import numpy as np


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

Submission status: Accepted

Solution code:


import numpy as np

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nStr = input()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
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:
n = input()
n1 = int(n[0])
n2 = int(n[1])

if n1 == 9 or n2 == 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:
a,b=input()
if a=="9" or b=="9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = [x for x in 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:
n = str(input())
li = set(list(n))
if '9' in li:
    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('Yes' if input().count('9') 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 = int(input())
N = str(N)
if "9" in N:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = str(input())

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

else:
    print('No')

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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 = sorted(list(input()))
if n[1] == "9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

N = ri()
print('Yes' if str(N).find('9') >= 0 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:
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:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))

n = int(input())



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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

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:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
# ABC073a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
##### 解けた #####

N=input()

if "9" in N: # 9が含まれる場合
    print("Yes")
else: # 含まれない場合
    print("No")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 入力
N = str(input())
# スペース区切りの整数の入力
#X, t = map(int, input().split())

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("Yes" if sum([x=="9" for x in list(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 = int(input())

if (90 <= n <= 99) or ((n+1) % 10 == 0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def examA():
    N = I()
    if N%10==9:
        ans = "Yes"
    elif N//10==9:
        ans = "Yes"
    else:
        ans = "No"
    print(ans)


import sys
import copy
import bisect
import heapq
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Submission status: Accepted

Solution code:
n = input()

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

print('No')

Submission status: Accepted

Solution code:
n = input()

a = 0
for i in n:
       if i == '9':
              a += 1

if a >= 1:
       print('Yes')
else:  print('No')

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

k = str(n)

#print(k[0])
#print(k[1])

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

Submission status: Accepted

Solution code:
N = list(str(input()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
  n = input()
  
  for s in n:
    if s == '9':
      print("Yes")
      return
  print("No")
  return
  
main()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = input()
if(N[0] == '9' or N[1] == '9'):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
# A - September 9
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:
N = str(input())
print('YNeos'[N.count('9')==0::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
n_list=[]
count=0
for letter in n:
    if letter=='9':
        print("Yes")
        break
    else:
        count+=1
if count==len(n):
    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:
for c in input():
  if c == '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=list(input())
f='No'
for a in N:
    if a=='9':
        f='Yes'
print(f)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())
ans = 0
for i in range(2):
    if n[i]=="9":
        ans +=1
if ans>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 =list(input())
if N[0]=="9" or N[1]=="9":
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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




if __name__ == "__main__":
    main()

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC073 A - September 9
S = str(input())

is_nine = False

for s in S:
    if s == '9':
        is_nine = True

if is_nine:
    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:
# ABC073A - September 9
def main():
    N = input().rstrip()
    flg = "9" in N
    print("Yes" if flg else "No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = raw_input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
s = input()
a = [int(c) for c in s]
if a.count(9) == 0:
    print('No')
else :
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input();print("YNeos"[x[0] != '9' and x[1] != '9'::2])

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("Yes" if '9' in n else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    n = str(input().rstrip('\n'))
    print("Yes" if n.count("9") != 0 else "No")


if __name__ == '__main__':
    slove()

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

a = n//10
b = n%10

if a == 9:
  print('Yes')
  exit()
if b == 9:
  print('Yes')
  exit()
print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
print("Yes") if '9' in N 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:
n = int(input())
if n // 10 == 9 or n % 10 == 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:
# -*- coding: utf-8 -*-

n = list(str(input()))

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

Submission status: Accepted

Solution code:
#2019/09/24
N = list(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")

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=STR()
    if n[0]=='9' or n[1] == '9':
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    do()

Submission status: Accepted

Solution code:
n=input()
ck=0
for _ in range(len(n)):
  if n[_]=='9':
    ck+=1
if not ck==0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

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