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())
#a, b = map(int,input().split())
#l = list(map(int,input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
print('Yes') if '9' in n 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.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()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
if n%10==9 or (n-n%10)%100==90:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=int(input())
if s%10==9 or s//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:
import sys
def input(): return sys.stdin.readline().strip()


def main():
    N = input()
    nine = False
    for c in N:
        if c == '9': nine = True
    if nine:
        print("Yes")
    else:
        print("No")



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:
# # Make IO faster
# import sys
# input = sys.stdin.readline

# # get single (or) multiple str
# X = input()

# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]

# from IPython import embed; embed(); exit();

# 全部入り
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
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
import numpy as np
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

N = INT()
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:
ary = list(input())
print("Yes") if ary.count("9") > 0 else print("No")

Submission status: Accepted

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


if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
a = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    s = s_input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
print(['No','Yes'][9 in [N%10, (N-N%10)//10]])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


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

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

    return


if __name__ == '__main__':
    main()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
# n = 100*a + 10*b +c
b = n%10
a = int(n/10)
if a ==9or b == 9:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(input())

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

Submission status: Accepted

Solution code:
s = 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:
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 list(N):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=int(input())
B="No"
if A%10==9 or A+10>=100:
  B="Yes"
print(B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
s = S()
if '9' in s:
    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:
print("Yes" if "9" in input() else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

if "9" in N:
  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:
# X, t = map(int, input().split())
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:
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()
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()
if n[0] == '9' or n[1] == '9':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
N = int(input())
if N < 10 or N > 99:
    sys.exit()

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

Submission status: Accepted

Solution code:
N = input()

N_10 = int(N[0])
N_1 = int(N[1])


if (N_10 != 9) and (N_1 != 9):
    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:
N = list(input())

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

Submission status: Accepted

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

n = str(input())

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

Submission status: Accepted

Solution code:
print("NYoe s"[input().find("9")!=-1::2])

Submission status: Accepted

Solution code:
def actual(N):
    a, b = divmod(N, 10)

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

    return 'No'

N = int(input())
print(actual(N))

Submission status: Accepted

Solution code:
def actual(N):
    if '9' in str(N):
        return 'Yes'

    return 'No'

N = int(input())
print(actual(N))

Submission status: Accepted

Solution code:
from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
if int(n / 10) == 9 or int(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:
import math

n=input()
for i in range(0,2):
    if(n[i]=="9"):
        print("Yes")
        exit()
print("No")

Submission status: Accepted

Solution code:
print("Yes" if '9' in input() 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()
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();print('NYoe s'[n[0]=='9' or n[1] =='9'::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

N1=N//10
N0=N%10

if N1==9 or N0==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=int(input())
if n//90==1 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:
N = input()
if N[0] == "9" or N[1] == "9":
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
## io ##
def IS(): return sys.stdin.readline().rstrip()
def II(): return int(IS())
def MII(): return list(map(int, IS().split()))
def MIIZ(): return list(map(lambda x: x-1, MII()))
#======================================================#
def main():
    n = IS()
    if '9' in set(n):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

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 set(n) else 'No')

Submission status: Accepted

Solution code:
n = int(input())

m = n%10
l = n // 10

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

Submission status: Accepted

Solution code:

n=list(input())

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

Submission status: Accepted

Solution code:
s = input()
if s.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:
#!/usr/bin/env python3
import sys

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


def solve(N: int):
    print(YES if str(N).count('9') > 0 else NO)
    return


# Generated by 1.1.7.1 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:
#!/usr/bin/env python3

import sys
# import time
# import math
# import numpy as np
# import scipy.sparse.csgraph as cs            # csgraph_from_dense(ndarray, null_value=inf), bellman_ford(G, return_predecessors=True), dijkstra, floyd_warshall
# import random                                # random, uniform, randint, randrange, shuffle, sample
# import string                                # ascii_lowercase, ascii_uppercase, ascii_letters, digits, hexdigits
# import re                                    # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)
# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).
# from collections import deque                # deque class. deque(L): dq.append(x), dq.appendleft(x), dq.pop(), dq.popleft(), dq.rotate()
# from collections import defaultdict          # subclass of dict. defaultdict(facroty)
# from collections import Counter              # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)
# from datetime import date, datetime          # date.today(), date(year,month,day) => date obj; datetime.now(), datetime(year,month,day,hour,second,microsecond) => datetime obj; subtraction => timedelta obj
# from datetime.datetime import strptime       # strptime('2019/01/01 10:05:20', '%Y/%m/%d/ %H:%M:%S') returns datetime obj
# from datetime import timedelta               # td.days, td.seconds, td.microseconds, td.total_seconds(). abs function is also available.
# from copy import copy, deepcopy              # use deepcopy to copy multi-dimentional matrix without reference
# from functools import reduce                 # reduce(f, iter[, init])
# from functools import lru_cache              # @lrucache ...arguments of functions should be able to be keys of dict (e.g. list is not allowed)
# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).
# from heapq import nlargest, nsmallest        # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).
# from itertools import count, cycle, repeat   # count(start[,step]), cycle(iter), repeat(elm[,n])
# from itertools import groupby                # [(k, list(g)) for k, g in groupby('000112')] returns [('0',['0','0','0']), ('1',['1','1']), ('2',['2'])]
# from itertools import starmap                # starmap(pow, [[2,5], [3,2]]) returns [32, 9]
# from itertools import product, permutations  # product(iter, repeat=n), permutations(iter[,r])
# from itertools import combinations, combinations_with_replacement
# from itertools import accumulate             # accumulate(iter[, f])
# from operator import itemgetter              # itemgetter(1), itemgetter('key')
# from fractions import gcd                    # for Python 3.4 (previous contest @AtCoder)



def main():
    mod = 1000000007                # 10^9+7
    inf = float('inf')              # sys.float_info.max = 1.79...e+308
    # inf = 2 ** 64 - 1             # (for fast JIT compile in PyPy) 1.84...e+19
    sys.setrecursionlimit(10**6)    # 1000 -> 1000000
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    s = input()
    print('Yes') if '9' in s else print('No')


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def check():
    N = input()
    if '9' in N:
        return 'Yes'
    return 'No'
print(check())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

n = list(readline().decode().rstrip())
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:
if input().count('9'):
  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 = list(input())

for i in N:
    if i == '9':
        print('Yes')
        exit(0)
else:
    print('No')

Submission status: Accepted

Solution code:
N = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
# -*- coding: <encoding name> -*-

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    n = input()

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


if __name__ == '__main__':
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Thu May 14 11:36:43 2020

@author: shinba
"""

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:
# -*- coding: utf-8 -*-
N = input()
print(['No', 'Yes']['9' in N])

Submission status: Accepted

Solution code:
n = list(map(int, 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()
if ("9" in N):
    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:
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()

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

Submission status: Accepted

Solution code:
N = input()
ARU = False
for i in range(len(N)):
    if N[i] == "9":
        ARU= True
if ARU:
    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 = int(input())

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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

    if "9" in str(N):
        ans = "Yes"
    else:
        ans = "No"

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':

    ABC_73_A()

Submission status: Accepted

Solution code:
n = list(input())

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