AtCoder Beginner Contest 073 - September 9

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-----
29

-----Sample Output-----
Yes

The one's digit of 29 is 9.

Difficulty: EASY

Starter code:

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


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


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


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


print('Yes' if input().count('9') >= 1 else 'No')


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


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


N = str(input())

def answer(N: str) -> str:
	if '9' in N:
		return 'Yes'
	else:
		return 'No'
print(answer(N))


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


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


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


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


print('YNeos'[input().find('9') == -1::2])


print(['No', 'Yes'][input().count('9') > 0])


arr = list(input())
print('Yes' if '9' in arr else 'No')


s = list(input())
c = 0
for i in range(0, len(s)):
	if s[i] == '9':
		c = c + 1
if c == 0:
	print('No')
else:
	print('Yes')


n = str(input())
print(('No', 'Yes')[n[1] == '9' or n[0] == '9'])


N = input()
ans = 'No'
for i in N:
	if i == '9':
		ans = 'Yes'
print(ans)


import math
n = input()
print('Yes' if '9' in n else 'No')


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


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


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


N = str(input())
print('YNeos'[N.count('9') == 0::2])


N = int(input())
if N >= 90 or (N - 9) % 10 == 0:
	print('Yes')
else:
	print('No')


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


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


print(' YNeos'['9' in input()::2].strip())


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


N = int(input())
number_nine = list(str(N))
if '9' in number_nine:
	print('Yes')
else:
	print('No')


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


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


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


s = int(input())
print('Yes' if s // 10 == 9 or s % 10 == 9 else 'No')


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


N = input()
N_list = list(N)
print(['No', 'Yes']['9' in N_list])


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


n = input()
print(['No', 'Yes', 'Yes'][n.count('9')])


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


l = list(input())
print('Yes') if '9' in l else print('No')


n = input()
s = n.find('9')
if s == -1:
	print('No')
else:
	print('Yes')


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


def atc_073a(N: int) -> str:
	try:
		str(N).index('9')
		return 'Yes'
	except ValueError:
		return 'No'
N = int(input())
print(atc_073a(N))


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


N = input()
my_list = []
for i in N:
	my_list.append(i)
if '9' in my_list:
	print('Yes')
else:
	print('No')


print('Yes' if any(('9' == c for c in input())) else 'No')


n = int(input())
result = ''
if n % 10 == 9:
	result = 'Yes'
elif 90 <= n % 100 < 100:
	result = 'Yes'
else:
	result = 'No'
print(result)


s = input()
ans = 'No'
for c in s:
	if c == '9':
		ans = 'Yes'
print(ans)


print(input().count('9') and 'Yes' or 'No')


print(['No', 'Yes'][input().count('9') >= 1])


print('Yes') if '9' in set(list(input())) else print('No')


x = input()
a = 'No'
if '9' in x:
	a = 'Yes'
print(a)


a = list(input())
count = 0
for i in range(0, len(a)):
	if a[i] == '9':
		count += 1
if count > 0:
	print('Yes')
else:
	print('No')


(m, n) = input()
print(['No', 'Yes'][m == '9' or n == '9'])


import sys
from io import StringIO
import unittest

class TestClass(unittest.TestCase):

	def assertIO(self, input, output):
		(stdout, stdin) = (sys.stdout, sys.stdin)
		(sys.stdout, sys.stdin) = (StringIO(), StringIO(input))
		resolve()
		sys.stdout.seek(0)
		out = sys.stdout.read()[:-1]
		(sys.stdout, sys.stdin) = (stdout, stdin)
		self.assertEqual(out, output)

	def test_入力例_1(self):
		input = '29'
		output = 'Yes'
		self.assertIO(input, output)

	def test_入力例_2(self):
		input = '72'
		output = 'No'
		self.assertIO(input, output)

	def test_入力例_3(self):
		input = '91'
		output = 'Yes'
		self.assertIO(input, output)

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

def __starting_point():
	resolve()
__starting_point()


print('Yes' if list(input()).count('9') else 'No')


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


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


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


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


a = int(input())
print(['No', 'Yes'][a % 10 == 9 or a > 89])


N = list(map(int, input()))
print('Yes' if 9 in N else 'No')


print('Yes' if '9' in {i for i in input()} else 'No')


str_num = str(input())
print('Yes' if '9' in str_num else 'No')


N = int(input())
if 10 <= N and N <= 99:
	n = str(N)
	if (int(n[0]) == 9 or int(n[1]) == 9) or (int(n[0]) == 9 and int(n[1]) == 9):
		print('Yes')
	else:
		print('No')


L = list(input())
print('Yes' if '9' in L else 'No')


a = list(input())
print('Yes' if '9' in a else 'No')


n = input()
print('NYoe s'[n[0] == '9' or n[1] == '9'::2])


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


print('YNeos'[1 - ('9' in input())::2])


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


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


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


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


def iroha():
	num = list(input())
	for i in num:
		if i == '9':
			print('Yes')
			return
	print('No')

def __starting_point():
	iroha()
__starting_point()


a = input()
print('Yes' if a[0] == '9' or a[1] == '9' else 'No')


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


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


a = str(input())
print('Yes' if '9' in a else 'No')


s = input()
print(['No', 'Yes'][s[0] == '9' or s[1] == '9'])


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


print('Yes' if sorted(list(input()))[1] == '9' else 'No')


x = input()
print('Yes' if x.count('9') else 'No')


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