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:
# region header
import sys
import math
from bisect import bisect_left, bisect_right, insort_left, insort_right
from collections import defaultdict, deque, Counter
from copy import deepcopy
from fractions import gcd
from functools import lru_cache, reduce
from heapq import heappop, heappush
from itertools import accumulate, groupby, product, permutations, combinations, combinations_with_replacement
from math import ceil, floor, factorial, log, sqrt, sin, cos
from operator import itemgetter
from string import ascii_lowercase, ascii_uppercase, digits
sys.setrecursionlimit(10**7)
rs = lambda: sys.stdin.readline().rstrip()
ri = lambda: int(rs())
rf = lambda: float(rs())
rs_ = lambda: [_ for _ in rs().split()]
ri_ = lambda: [int(_) for _ in rs().split()]
rf_ = lambda: [float(_) for _ in rs().split()]
INF = float('inf')
MOD = 10 ** 9 + 7
PI = math.pi
# endregion
for i in rs():
    if i == '9':
        print('Yes')
        exit()
print('No')

Submission status: Accepted

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

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 = 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 '9' in N else 'No')

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()

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

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

Submission status: Accepted

Solution code:
n=input()
ans=0
for i in n:
    if i=='9':
        ans+=1
print('Yes' if ans>0 else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
print('Yes' if n.count('9') > 0 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:
#!/usr/bin/env python3

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
if N.find('9') > -1:
    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 accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
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()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
import numpy as np

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = str(input())

l = len(s)

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

Submission status: Accepted

Solution code:
N = str(input())

ans = 'No'

for a in N:
    if a == '9':
        ans = 'Yes'
        break
    else:
        ans = 'No'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=input()
if N.count("9")>=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:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
inf = 10**17
mod = 10**9 + 7

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

Submission status: Accepted

Solution code:
n = int (input())

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

Submission status: Accepted

Solution code:
n = input()
ans = 0
for i in n:
  if i=='9':
    ans += 1
if ans > 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC073A

n = int(input())
if n // 10 == 9 or n % 10 == 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:
s=str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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


if '__main__' == __name__:
    resolve()

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"][int("9" in input())])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import collections
import sys
import numpy as np
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
MOD = 10**9+7
import itertools
import math
import functools

n = input()
for i in range(len(n)):
    if n[i] == "9":
        print("Yes")
        sys.exit()
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:
N=int(input())
if N//10==9 or N%10==9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

a = n//10

b = n-a*10

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

else:
  print("No")

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
n=int(n)
og=n
flag=0
while(n>0):
    d=n%10
    n=n//10
    if(d==9):
        flag=flag+1
        
if(flag>0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = list(map(int, input()))

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

Submission status: Accepted

Solution code:
x=list(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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())
li = [N[0], N[1]]

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

Submission status: Accepted

Solution code:
N = list(map(int, input()))
cnt = 0
for i in N:
  if i==9:
    cnt += 1
if cnt==0:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
icase=0    
if icase==0:
    n=list(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:
s = str(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:
def main():
    N = input()

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

Submission status: Accepted

Solution code:

url = "https://atcoder.jp//contests/abc073/tasks/abc073_a"

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

Solution code:
def func(l):
    for i in l:
        if i == "9":
            return 1
    return 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
ans = "No"
for char in N:
    if char == "9":
        ans = "Yes"
        break

print(ans)

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:
a=str(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 n.count('9') > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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:
a=list(input())

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

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

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

Submission status: Accepted

Solution code:
n = int(input())

if n == 19 or n == 29 or n == 39 or n == 49 or n == 59 or n == 69 or n == 79 or n == 89 or n == 91 or n == 92 or n == 93 or n == 94 or n == 95 or n == 96 or n == 97 or n == 98 or n == 99 :
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N=int(input())

if(N % 10==9):
    print("Yes")
elif(N//10==9):
    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 = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc073/tasks/abc073_a

N = input()

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
n=input()
if n[0]=='9':
    print('Yes')
    exit()
if n[1]=='9':
    print('Yes')
    exit()
else:
    print('No')

Submission status: Accepted

Solution code:
import itertools
def main():
  n = input()
  print("Yes" if n.count('9') else "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()

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

Submission status: Accepted

Solution code:
import sys

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

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

if __name__ ==  '__main__':
    main()

Submission status: Accepted

Solution code:
# ABC 073: A – September 9
n = input()
print('Yes' if n[0] == '9' or n[1] == '9' else 'No')

Submission status: Accepted

Solution code:
N = input()

if N.find('9') >=0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = input()

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

Submission status: Accepted

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

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") and (N[1] != "9"):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
import math


c=input()

if "9" in c:
    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
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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



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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Author: cr4zjh0bp
# Created: Fri Mar 20 22:48:43 UTC 2020
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni      = lambda: int(ns())
nin     = lambda y: [ni() for _ in range(y)]
na      = lambda: list(map(int, stdin.readline().split()))
nan     = lambda y: [na() for _ in range(y)]
nf      = lambda: float(ns())
nfn     = lambda y: [nf() for _ in range(y)]
nfa     = lambda: list(map(float, stdin.readline().split()))
nfan    = lambda y: [nfa() for _ in range(y)]
ns      = lambda: stdin.readline().rstrip()
nsn     = lambda y: [ns() for _ in range(y)]
ncl     = lambda y: [list(ns()) for _ in range(y)]
nas     = lambda: stdin.readline().split()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

Solution code:
# Problem A - September 9

# input process
N = input()

# output process
if "9" in N:
    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:
N = input()

if ("9" in N):
    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
input = sys.stdin.readline
S = input()
if "9" in S: 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:
n=input()
print("Yes"if n[0]=="9"or n[1]=="9" else"No")

Submission status: Accepted

Solution code:
l = input()
if '9' in l:
  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())
cnt = 0
for i in n:
    if i == "9":
       cnt += 1
if cnt >= 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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 s.count("9") >= 1 else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
n = list(input())
print('Yes' if n.count('9') >= 1 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().strip()
if int(n[0]) == 9 or int(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:
#pypyは内包表記使わない
def main():
    import sys
    #input = sys.stdin.readline
    sys.setrecursionlimit(10000000)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations
    #from itertools import accumulate, product
    from bisect import bisect_left,bisect_right
    from math import floor, ceil
    #from operator import itemgetter

    #mod = 1000000007

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

print(main(n))

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:
# A - September 9
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:
import sys
ss=input().strip()
for s in ss:
  if s=="9":
    print("Yes")
    sys.exit()
print("No")

Submission status: Accepted

Solution code:
n = input()
f = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
#!/usr/bin/env pypy3
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# -*- coding: utf-8 -*-

N_str = input().strip()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

N=list(input())

print('Yes') if(('9' in N)==True) 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:
S = list(map(int, input()))

flg = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("Yes" if list(input()).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()
c = 0
for i in n:
    if i == "9":
        c = 1
if c == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = str(input())

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