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

Solution code:
n = int(input())
A = [int(input()) for i in range(n)] 
 
counter = [0]*max(A)
cnt = 0
for a in A:
    counter[a-1] += 1
for c in counter:
    if c % 2 == 0 & c != 0:
        cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
N=int(input())
for A_i in range (N):
x=int(input())
x=list(set(x))
print len(x)

Submission status: Runtime Error

Solution code:
#-*- coding: utf-8-*-
import sys
argvs = sys.argv
N = int(argvs[1])

if 89< N <100 or N in (i*10+9 for i in range(1, 9, 1)):
    print 'Yes'
else:
    print 'No'

Submission status: Runtime Error

Solution code:
i = raw_input("Enter number")
 
while(i > 0):
	j = i % 10
	if j == 9:
		print 'Yes'
	i /= 10
print 'No'

Submission status: Runtime Error

Solution code:

n = int(input())
A = [int(input()) for i in range(n)]


t = set()
B = [x for x in A if x in t or t.add(x)]


C = [item for item in A if item not in B]
print(len(C))

Submission status: Runtime Error

Solution code:
i = raw_input("Enter number")
 
while(i > 0):
  j = i % 10;
  if j == 9:
    print 'Yes'
  i /= 10;
print 'No'

Submission status: Runtime Error

Solution code:
i = raw_input("Enter number")
 
while(i > 0):
	j = i % 10;
	if j == 9:
		print 'Yes'
	i /= 10;
print 'No'

Submission status: Runtime Error

Solution code:
N=int(input())
for A in range (N):
a=int(input())
a=list(set(x))
print len(a)

Submission status: Runtime Error

Solution code:
n = int(input())
A = [int(input()) for i in range(n)] 

B = set(A)

C = [item for item in A if item not in B]
print(len(C))

Submission status: Runtime Error

Solution code:
i = raw_input("Enter number")

while(i >= 0):
	j = i % 10;
	if j == 9:
		print 'Yes'
	i /= 10;
print 'No'

Submission status: Runtime Error

Solution code:
n = int(input())
A = [int(input()) for i in range(n)] 

counter = [0] * 1000000000
cnt = 0
for a in A:
    counter[a-1] += 1
for c in counter:
    if c == 1:
        cnt += 1
print(cnt)

Submission status: Runtime Error

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')

input()

Submission status: Runtime Error

Solution code:
n = int(input())
A = [int(input()) for i in range(n)] 

counter = [0]*n
cnt = 0
for a in A:
    counter[a-1] += 1
for c in counter:
    if c == 1:
        cnt += 1
print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
list = []
for i in range(N):
    number = int(input())
    if number in list:
        list.remove(number)
        #print(list)
    else:
        list.append(number)
        #print(list)
print(len(list))

Submission status: Runtime Error

Solution code:
n = list(int(input()))

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

Submission status: Runtime Error

Solution code:
N=int(input())
if N.count(9)==1:
    print(Yes)
else:
print(No)

Submission status: Runtime Error

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

N = int(raw=input())
#if 89< N <100 or N in (i*10+9 for i in range(1, 9, 1)):
if 89< N <100 or N==19 or N==29 or N==39 or N==49 or N==59 or N==69 or N==79 or N==89:
    print 'Yes'
else:
    print 'No'

Submission status: Runtime Error

Solution code:
#-*- coding: utf-8-*-
import sys
argv = sys.argv

N = argv[1]
if 89< N <100 or N in (i*10+9 for i in range(1, 9, 1)):
    print 'Yes'
else:
    print 'No'
sys.exit()

Submission status: Runtime Error

Solution code:
N = input()
result = "NO"
if i in N:
    if i == '9':
        result = "YES"
print(result)

Submission status: Runtime Error

Solution code:
#-*- coding: utf-8-*-
import sys
argv = sys.argv

N = argv[1]
if 89< N <100 or N==19 or N==29 or N==39 or N==49 or N==59 or N==69 or N==79 or N==89:
    print 'Yes'
else:
    print 'No'

Submission status: Runtime Error

Solution code:
N = [int(i) for i in input().split()]
result = "NO"
if i in N:
    if i == 9:
        result = "YES"
print(result)

Submission status: Runtime Error

Solution code:
#-*- coding: utf-8-*-
import sys
argv = sys.argv

N = argv[1]
if 89< N <100 or N in (i*10+9 for i in range(1, 9, 1)):
    print 'Yes'
else:
    print 'No'

Submission status: Runtime Error

Solution code:
n=int(input().split())
if((n[0]+n[1])%9==0):
  Yes
else:
  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:
inp = input()

in1 = inp // 10
in2 = inp % 10
if in1 == 9 or in2 == 9:
  print('YES')
else:
  print('NO')

Submission status: Runtime Error

Solution code:
inp = input()

inp = str(in)
if '9' in inp:
  print('YES')
else:
  print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

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