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

n = int(input())
fst = n % 10
snd = n // 10

if (fst == 9) | (snd == 9):
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
input = int(input())

first_digit = input % 10
second_digit = int((input - first_digit) / 10)

if first_digit == 9 or second_digit == 9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
p = int(input())
if p % 10 == 9 or 90 <= p <= 99:
    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:
a=raw_input()

a = int (a)

if a%10==9:
    print "Yes"
elif (a/10)%10==9:
    print "Yes"
else :
    print "No"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
gosa = 1.0 / 10**10
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    n = I()
    if n%10 == 9 or n//10 == 9:
        return 'Yes'

    return 'No'

print(main())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict
from itertools import product, groupby
from math import pi
from collections import deque
from bisect import bisect, bisect_left, bisect_right
INF = 10 ** 10


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np


def getInput():
    """

    :return: list of list of str. 1st dim: row, 2nd dim: column.
    """
    separator = ' '
    ret_array = []
    while True:
        try:
            row = input().split(sep=separator)
            ret_array.append(row)
        except EOFError:
            break
    return ret_array


g = getInput()

# number
p = np.array(list(map(int, g[0])), dtype=np.int32)
h, f = divmod(p, 10)
if h == 9 or f == 9:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a = int(input())
b = a // 10
c = a % 10

if b == 9 or c == 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:
a=int(raw_input())
ichi_kurai=a/10
jyu_kurai=a%10

if ichi_kurai == 9 or jyu_kurai == 9:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
n = str(input())

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

Submission status: Accepted

Solution code:
def ED(a):
    x = [int(x) for x in list(str(a))]
    if 9 in x:
        return 'Yes'
    else:
        return 'No'
x = input()
y = ED(x)
print(y)

Submission status: Accepted

Solution code:
N= int(input())
n=[]
j=9
c=0
while N!=0:
    n.append(N%10)
    N//=10
n.reverse()

for i in range(len(n)):
    if n[i-1]==j:
        c+=1

if c > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
x = 0

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

Submission status: Accepted

Solution code:
number = int(raw_input())

if number < 10 and number == 9:
    print 'Yes'
elif (number % 10) == 9:
    print 'Yes'
elif (number / 10) == 9:
    print 'Yes'
else:
    print 'No'

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC073A

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

Solution code:
# coding: utf-8

def main():
    NN = input()
    if 10<=int(NN)<=99:
        if NN[0]=='9' or NN[1]=='9':
            print("Yes")
        else:
            print("No")
    return

if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
n = input()
if n.find('9') >= 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n=int(input())
a=n//10
b=n-10*a
if 9 in [a,b]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
for i in input():
    if i =='9':
        print("Yes")
        sys.exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

# sys.stdin = open('a1.in')


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


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


def read_int():
    return int(input())


def read_str():
    return input()


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


main()

Submission status: Accepted

Solution code:
a=list(str(input()))
ch=0
for i in a:
    if i=="9":
        ch=1
if ch==1:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
import atexit
import io
import sys

temp_buffer = io.BytesIO()
sys.stdout = temp_buffer


@atexit.register
def write():
    sys.__stdout__.write(temp_buffer.getvalue())


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

Submission status: Accepted

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

if(len(a) == 2):
	if(a[0] == 9):
		print('Yes')
	elif(a[1] == 9):
		print('Yes')
	else:
		print('No')

else:
	if(a[0] == 9):
		print('Yes')
	else:
		print('No')

Submission status: Accepted

Solution code:
n = raw_input()

index = n.find("9")

if index >= 0:
    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:
from sys import stdin
ans = 'No'
a = stdin.readline().strip()
if '9' in a:
 ans = 'Yes'
print ans

Submission status: Accepted

Solution code:
import sys

N = int(sys.stdin.readline())
n1 = N % 10
n2 = int((N - n1) / 10)

if n1 == 9 or n2 == 9:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

if N%10 == 9:
    print('Yes')
elif N >= 90:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

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

Submission status: Accepted

Solution code:
num = input()
num = str(num)
isthere = False
for i in range(0, 2):
	if num[i] == '9':
		isthere = True

if isthere:
	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:
x = int(input())

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

Submission status: Accepted

Solution code:
def solve(): # 073A- September 9
    n = int(input())
    n_10 = n // 10
    n_1 = n - n_10 * 10

    if n_10 == 9 or n_1 == 9:
        print("Yes")
    else:
        print("No")
        

solve()

Submission status: Accepted

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

Submission status: Accepted

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

    N_10 = N//10
    N_1 = N - N_10*10

    if N_10==9:
        print('Yes')
    elif N_1==9:
        print('Yes')
    else:
        print('No')


if __name__=='__main__':
    main()

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 numpy as np
hoge = input()
hoge = int(hoge)
if hoge//10 == 9 or hoge%10 == 9: 
    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:
N = input()
print('Yes' if N[0] == '9' or N[1] == '9' else 'No')

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import copy
import sys
import numpy as np

from math import *
def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [N] = [int(input_raw[0])]
    if int(N/10) == 9 or int(N % 10) == 9:
        print "Yes"
    else:
        print "No"

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = [int(x) for x in list(str(input()))]
if 9 in N:
    print ('Yes')
else:
    print ('No')

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    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>89) 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:
import sys

# sys.stdin = open('a1.in')


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


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


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    n = read_int()
    l = [9, 19, 29, 39, 49, 59, 69, 79, 89, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90]
    if n in l:
        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 N[0] =='9' or N[1] == '9':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())
found9 = False
while N > 0:
    rem = N % 10
    if rem == 9:
        print("Yes")
        found9 = True
        break
    N = N // 10
if not found9:
    print("No")

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

Solution code:
S = input()

def function(mode):
    if "9" in mode:
        x = "Yes"
    else:
        x = "No"
    return x
print(function(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input()

if '9' in inp:
  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:
def hantei(N):
    N = str(N)
    for i in N:
        if i == '9': return 'Yes'
    return 'No'

def main():
    N = input()
    print hantei(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python
import sys
if __name__ == '__main__':
    line = sys.stdin.readline()
    N = line
    if N.find('9') > -1:
    	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:
N=input()
print "Yes" if N%10==9 or N/10==9 else "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:
a=input()
bl = False
while a != 0:
  if a % 10 == 9:
    bl = True
    break
  a = a/10
if bl:
  print "Yes"
else:
  print "No"

Submission status: Accepted

Solution code:
n = raw_input()

l = [int(x) for x in list(str(n))]
if l[0] == 9:
	print("Yes")
elif l[1] == 9:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

data = list(input())
flag = 0

for i in data:
    if int(i) == 9:
        print("Yes")
        flag = 1
        break
    
if flag == 0:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
t = 1

for i in range(len(n)):
    if n[i] == "9":
        print("Yes")
        t =0
        break
       
if t: print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
tmp=map(int, raw_input())

output="No"
for i in set(tmp):
    if i==9:
        output="Yes"
print output

Submission status: Accepted

Solution code:
a = int(input())

if a%10 == 9:
    print("Yes")
elif int(a/10) == 9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC073 A

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

Submission status: Accepted

Solution code:
inn = input()
ans = "No"
if inn[0] == "9":
    ans = "Yes"
if inn[1] == "9":
    ans = "Yes"
print(ans)

Submission status: Accepted

Solution code:
s=str(input())

f=0
for a in s:
    if a=='9':
        f=1
if f==1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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



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

if __name__ == "__main__": main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=raw_input()

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x=int(raw_input())

x10=int(x/10)
x1=x-x10*10
if x10==9 or x1==9:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
n = input()
if n.find('9') >= 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def spaceinput():
    return list(map(int,input().split(" ")))


N=list(str(int(input())))

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys


def main():
    for line in sys.stdin:
        if "9" in line.rstrip():
            print("Yes")
        else:
            print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

solution()

Submission status: Accepted

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


def solve(data):
    if '9' in data:
        return True
    else:
        return False


def main():
    data = input()
    result = solve(data)
    if result:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding=utf-8
N = raw_input()
out = 'No'
for i in N:
    if i == '9':
        out = 'Yes'
        break
print out

Submission status: Accepted

Solution code:
N=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(input())

flag = False
if N[0] == "9":
    flag = True
if N[1] == "9":
    flag = True

if flag:
    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

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

Submission status: Accepted

Solution code:
s = input()						# 5

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
import sys
N = list(input())
for tmp in N:
    if tmp == '9':
        print("Yes")
        sys.exit()
    else:
        pass
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())
print('Yes' if '9' in N else 'No')

Submission status: Accepted

Solution code:
#a = map(int,raw_input().strip().split())
a = raw_input()
p = False
for x in a:
	if x == '9':
		p = True
if p:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!usr/bim/python
#! -*- coding: utf-8 -*-

n = raw_input()

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

Submission status: Accepted

Solution code:
def main():
    N = input()

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

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = str(input())

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

Submission status: Accepted

Solution code:
#coding:utf-8

num = int(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    for line in sys.stdin:
        if "9" in line:
            print("Yes")
        else:
            print("No")

if __name__ == "__main__":
    main(sys.argv)

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

import os
import sys
import math
import numpy as np


N = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

flag = 0
for i in s:
    if i == "9":
        flag = 1

if flag == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

a()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# A

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import heapq
import math

a = input()
b = False
for aa in a:
    if aa == '9':
        b = True
print('Yes' if b else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
def get_ln_inputs():
    return input().split()


def get_ln_int_inputs():
    return list(map(int, get_ln_inputs()))


def main():
    N = get_ln_int_inputs()[0]
    if N % 10 == 9 or N >= 90:
        print("Yes")
    else:
        print("No")
    return


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from itertools import permutations
N,M,R = map(int,input().split())
r = list(map(int,input().split()))
for i in range(R):
  r[i] -= 1
g = [[10 ** 8] * N for i in range(N)]
for i in range(M):
  A,B,C = map(int,input().split())
  A -= 1 
  B -= 1
  g[A][B] = C
  g[B][A] = C
def warchall_floyd(n):
  for i in range(n):
    #経由する頂点
    for j in range(n):
      #始点
      for k in range(n):
        #終点
        g[j][k] = min(g[j][k],g[j][i]+g[i][k])
        
warchall_floyd(N)
ans = float('inf')
for i in permutations(r):
  now = 0
  for j in range(R-1):
    now += g[i[j]][i[j+1]]
  if now < ans:
    ans = now
print(ans)

Submission status: Runtime Error

Solution code:
if "9" == N[0] or "9" == N[1]:
        print( "YES" )
else:
    print( "NO" )

Submission status: Runtime Error

Solution code:
N = int(input())
ans = 0
for _ in range(N):
  l,r = map(int,input().split())
  ans += r - l + 1
  
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
n = int(input())
apple = []
for _ in range(n):
    a = str(input())
    if a not in apple:
        apple.append(a)
    else:
        apple.remove(a)
print(len(apple))

Submission status: Runtime Error

Solution code:
n = int(input())
apple = []
for _ in range(n):
    a = int(input())
    if a not in apple:
        apple.append(a)
    else:
        apple.remove(a)
print(len(apple))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
l = []
 
for _ in range(n):
    a = int(input())
    l.append(a)

l.sort()
print(l)
ans = 0
cnt = 1
tmp = l[0]
for i in range(1,len(l)):
    if tmp == l[i]:
        cnt += 1
        tmp = l[i]
    else:
        if cnt%2 != 0:
            ans += 1
            cnt = 1
            tmp = l[i]
        else:
            cnt = 1
            tmp = l[i]

print(ans)

Submission status: Runtime Error

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

for _ in range(n):
    a = int(input())
    if a not in l:
        l.append(a)
    else:
        l.remove(a)


print(len(l))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
N = list[N[0],N[1]]
if '9' in N:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
from collections import *
N=int(input())
A=[]
for i in range(0,N):
    A.append(int(input()))
M=Counter(A)
ans=0
for i in M:
    if(M[i]%2):
        ans+=1
print(str(ans))