ZhenlongDai/ACPR huggingface dataset:
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if N.find("9"):
  print("Yes")
else:
  print("No")

Failing test case input:
1223

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = input()
judge = N.find("9")
if  judge != -1:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("Yes" if input() in "9" else "No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
print("Yes" if "9" in input() else "No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
for i in N:
  if i == 9:
    print("Yes")
  else:
    print("No")
    

Failing test case input:
929

Expected output:
Yes


Actual output:
No
No
No


Fixed submission (verdict: Accepted):
N = list(map(int,input()))
if N[0] == 9 or N[1] == 9:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=list(map(int,input()))
print(int(9 in N))

Failing test case input:
929

Expected output:
Yes


Actual output:
1


Fixed submission (verdict: Accepted):
N=list(map(int,input()))
print('Yes' if(9 in N) else "No")

Problem: p03605
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
print('YNeos'['9' in input()::])


Failing test case input:
929

Expected output:
Yes


Actual output:
Neos


Fixed submission (verdict: Accepted):
print('YNeos'['9' not in input()::2])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(input())
print('YES' if '9' in n else 'NO')

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = list(input())
print('Yes' if '9' in n else 'No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
print("Yes" if N.count("N")>=1 else "No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
print("Yes" if N.count("9")>=1 else "No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

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

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
 
if N[0] == '9' or N[1] == '9':
	print('Yes')
else:
	print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
print(('No','Yes') [n[1]==9 or n[0]==9])

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=str(input())
print(('No','Yes') [n[1]=='9' or n[0]=='9'])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
b = [int(x) for x in list(str(n))]

for i in b:
    if i == 9:
        print("Yes")
        break
    else: 
        print('No')

Failing test case input:
1223

Expected output:
No


Actual output:
No
No
No
No


Fixed submission (verdict: Accepted):
n = int(input())

b = [int(x) for x in list(str(n))]

if b[0] == 9 or b[1] == 9:
    print('Yes')
else:
    print('No')
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('Yes' if '9' in list(input(())) else 'No')


Failing test case input:
1223

Expected output:
No


Actual output:
()No


Fixed submission (verdict: Accepted):
print('Yes' if '9' in list(input()) else 'No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
print('Yes') if (n[0]==9 or n[1]==9) else print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
print('Yes') if (n[0]=='9' or n[1]=='9') else print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input_str=input()
 
if int(input_str[0])==9:
  print("Yes")
elif int(input_str[1])==9:
  print("Yes")

Failing test case input:
1223

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
input_str=input()
 
if int(input_str[0])==9:
  print("Yes")
elif int(input_str[1])==9:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if "9" in n:
    print("YES")
else:
    print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n=input()
if "9" in n:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
if a[0] == 9 or a[1] == 9:
  print('Yes')
else:
  print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
if a[0] == '9' or  a[1] == '9':
    print('Yes')
else:
    print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
print('YES' if '9' in N else 'NO')

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()
print('Yes' if '9' in N else 'No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
nStr = input()

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


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
nStr = input()

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if [1 for c in input() if c == '9']:
    print('yes')
else:
    print('no')

Failing test case input:
929

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
if [1 for c in input() if c == '9']:
    print('Yes')
else:
    print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=str(input())
if N[0]==9 or N[1]==9:
    print('Yes')
else:
    print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=str(input())
if '9' in N:
    print('Yes')
else:
    print('No')
Problem: p03605
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = str(input())

if n[0]=='9' or n[1]=='9':
  print('YES')
else:
  print('NO')

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = str(input())

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if "9" in n :
    print("YES")
else:
    print("NO")

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
if "9" in n :
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if (n[0]==9) or (n[1]==9):
    print("Yes")
else:
    print("No")


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
if (n[0]=="9") or (n[1]=="9"):
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=str(input())
if N[0]==9 or N[1]==9:
  print('Yes')
else:
  print('NO')

Failing test case input:
929

Expected output:
Yes


Actual output:
NO


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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
b = list(a)
num = 0
for i in b:
    if i == "9":
        num = 1
        break
if num == 1:
    print("YES")
else:
    print("NO")


Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
b = list(input())
num = 0
for i in b:
    if i == "9":
        num = 1
        break
if num == 1:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n[0]==9 or n[1]==9:
	print("Yes")
else:
	print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
  n = input()
  
  for s in n:
    if s == '9':
      print("YES")
      return
  print("NO")
  return
  
main()

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def main():
  n = input()
  
  for s in n:
    if s == '9':
      print("Yes")
      return
  print("No")
  return
  
main()

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(['Yes','No']['9'in input()])

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
print(['No','Yes']['9'in input()])
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n[0]==9 or n[1]==9:
    print('Yes')
    exit()
else:
    print('No')


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=list(input())
if N[0]==9 or N[1]==9:
    print('Yes')
else:
    print('No')


Failing test case input:
929

Expected output:
Yes


Actual output:
No


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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('nyoe s'['9' in input()::2])

Failing test case input:
1223

Expected output:
No


Actual output:
no 


Fixed submission (verdict: Accepted):
print('NYoe s'['9' in input()::2])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n[0]==9 or n[1]==9:
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
if n[0]=="9" or n[1]=="9":
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
if n in "9":
    print("Yes")
else:
    print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
if "9" in n:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('Yes' if '9' in list(input(())) else 'No')

Failing test case input:
1223

Expected output:
No


Actual output:
()No


Fixed submission (verdict: Accepted):
print('Yes' if '9' in list(input()) else 'No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if "9" in N:
    print("yes")
else:
    print("no")

Failing test case input:
929

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N = input()
if "9" in N:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("Yes" if sorted(list(input()))[1]==9 else "No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
print("Yes" if sorted(list(input()))[1]=="9" else "No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    n = input()
    if '9' in n:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
def main():
    n = input()
    if '9' in n:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()
Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X = str(input())

if '9' in X:
    print('YES')
else:
    print('NO')


Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
X = str(input())

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

if '9' in N:
    print("YES")
else:
    print("NO")

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(["No","Yes"][int("7" in input())])

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
print(["No","Yes"][int("9" in input())])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("Yes" if input() in "9" else "No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
print("Yes" if "9" in input() else "No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=input()

if "9" in N:
  print("YES")
else:
  print("NO")

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
N=input()
 
if "9" in N:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(input())
for i in l:
    if i == 9:
        print("Yes")
    else:
        print("No")


Failing test case input:
1223

Expected output:
No


Actual output:
No
No
No
No


Fixed submission (verdict: Accepted):
l = list(input())
for i in l:
    if i == "9":
        print("Yes")
        break
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if N[0] == 9 or N[1] == 9:
    print("Yes")
else:
    print("No")


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if N[0] == "9" or N[1] == "9":
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
a = N/10
b = N-10*a
if a == 9 or b == 9:
  print('Yes')
else:
  print('No')


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
a = int(N/10)
b = N%10



if a == 9 or b == 9:
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n[0]==9 or n[1]==9:
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
if n[0]=="9" or n[1]=="9":
  print("Yes")
else:
  print("No")
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if n[0]==9 or n[1]==9:
    print("Yes")
else:
    print("No")


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
if n[0]=='9' or n[1]=='9':
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
if N[0] == 9 or N[1] == 9:
    print('Yes')
else:
    print('No')


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if N[0] == '9' or N[1] == '9':
    print('Yes')
else:
    print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str_list = list(input())
if (str_list[0]!="9") and (str_list[1]!="9"):
    print("No")
else:
    print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
str_list = list(input())
if (str_list[0]!="9") and (str_list[1]!="9"):
    print("No")
else:
    print("Yes")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YES" if "9" in input() else "NO")

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
print("Yes" if ("9" in list(input())) else "No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = str(input())
if s[0]=='9' or s[1]=='9':
  print('YES')
else:
  print('NO')

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
s = str(input())
if s[0]=='9' or s[1]=='9':
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
print('YNeos'['9' not in input()::])

Failing test case input:
1223

Expected output:
No


Actual output:
Neos


Fixed submission (verdict: Accepted):
print('YNeos'['9' not in input()::2])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=list(map(int,input()))
print(9 in N)

Failing test case input:
1223

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
N=list(map(int,input()))
print('Yes' if(9 in N) else "No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if n[0] == 9 or n[1] == 9:
    print('Yes')
else:
    print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
if n[0] == '9' or n[1] == '9':
    print('Yes')
else:
    print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
print("Yes" if n[0] == 9 or n[1] == 9 else "No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
print("Yes" if n[0] == "9" or n[1] == "9" else "No")
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
b = [int(x) for x in list(str(n))]

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

Failing test case input:
1223

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())

b = [int(x) for x in list(str(n))]

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

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

Failing test case input:
929

Expected output:
Yes


Actual output:
Yse


Fixed submission (verdict: Accepted):
N = input()
if N.find("9") != -1:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
if input() in "9":
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
if "9" in input():
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('NYoe s'[input().count('9')::2])

Failing test case input:
929

Expected output:
Yes


Actual output:
o 


Fixed submission (verdict: Accepted):
print('NYoe s'['9'in input()::2])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n in "9":
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
if "9" in n:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
if n.count('9'):
  print('Yes')
else:
  print('NO')

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=input()
if n.count('9'):
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
inp = input()

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

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
inp = input()

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
b = list(input())
num = 0
for i in b:
    if i == "9":
        num += 1
        break
if num == 1:
    print("YES")
else:
    print("NO")

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
b = list(input())
num = 0
for i in b:
    if i == "9":
        num = 1
        break
if num == 1:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
nlist =list(n)

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


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()

if "9" in n:
    print("Yes")
else:
    print("No")
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(True if "9" in input() else False )

Failing test case input:
929

Expected output:
Yes


Actual output:
True


Fixed submission (verdict: Accepted):
print("Yes" if "9" in input() else "No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if n[0] == 9 or n[1] == 9:
    print("Yes")
else:
    print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
if n[0] == "9" or n[1] == "9":
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
if "9" in N:
    print('Yes')
else:
    print('NO')

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
if "9" in n:
    print('Yes')
else:
    print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = str(input())

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


Failing test case input:
929

Expected output:
Yes


Actual output:
Yes
No
Yes


Fixed submission (verdict: Accepted):
N = str(input())

ans = 'No'

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

print(ans)

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
if n[0]==9 or n[1]==9:
    print('Yes')
else:
    print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
if n.count('9')>=1:
    print('Yes')
else:
    print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('Yse' if '9' in input() else 'No')

Failing test case input:
929

Expected output:
Yes


Actual output:
Yse


Fixed submission (verdict: Accepted):
print('Yes' if '9' in input() else 'No')

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[0] == 9 or s[1] == 9:
  print('Yes')
else:
  print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[0] == '9' or s[1] == '9':
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
if S[0]==9 or S[1]==9:
  print('Yes')
else:
  print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S=input()
if S[0]=='9' or S[1]=='9':
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
if s[0] == '9' or s[1] or '9':
  print('Yes')
else:
  print('No')

Failing test case input:
1223

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
if s[0] == '9' or s[1] == '9':
  print('Yes')
else:
  print('No')
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('YNeos'[input().count('9')>0::2])

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
print('YNeos'[input().count('9')==0::2])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = input()
if x[0] == 9 or x[1] == 9:
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
x = input()
if x[0] == "9" or x[1] == "9":
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()

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

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if s[0]==9 or s[1]==9:
  print("Yes")
else:
  print("No")
  

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
if s[0]=="9" or s[1]=="9":
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

if '9' in N:
	print('YES')
	
else:
	print('NO')


Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
N = input()

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N =input()
if N[0] or N[1] ==9:
    print("Yes")
else:
    print("No")

Failing test case input:
1223

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N =input()
if N[0]=="9":
    print("Yes")
elif N[1]=="9":
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
print('Yes' if (N % 10) == 9 or (int((N / 10))) else 'No')

Failing test case input:
1223

Expected output:
No


Actual output:
Yes


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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int, input().split()))

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

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
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')
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(input())

for i in l:
    if i == "9":
        print("Yes")
    else:
        print("No")


Failing test case input:
929

Expected output:
Yes


Actual output:
Yes
No
Yes


Fixed submission (verdict: Accepted):
l = list(input())
for i in l:
    if i == "9":
        print("Yes")
        break
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
if a in '9':
  print('Yes')
else:
  print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=input()
if '9' in a:
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if "9" in N:
  print("YES")
else:
  print("NO")

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
N = input()
if "9" in N:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
day = input()

if day[0] == '9' or day[1] == '9':
    print('YES')
else:
    print('NO')

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
day = input()

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n[0]==9 or n[1]==9:
  print('Yes')
else:
  print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
if n[0]=='9' or n[1]=='9':
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YES")if "9"in input()else print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
print("Yes")if "9"in input()else print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if N[0] == 9 or N[1] == 9:
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if N[0] == "9" or N[1] == "9":
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('YNeos'['9'in input()::2])

Failing test case input:
1223

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
print('NYoe s'['9'in input()::2])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
ans=False
for i in range(len(s)):
  if s[i]=='9':
    ans=False

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

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
ans=False
for i in s:
  if i=='9':
    ans=True

if ans:
  print('Yes')
else :
    print('No')
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

N = input()

for i in N:
    if i == "9":
        print("Yes")
        sys.exit()

print("Np")

Failing test case input:
1223

Expected output:
No


Actual output:
Np


Fixed submission (verdict: Accepted):
import sys

N = input()

for i in N:
    if i == "9":
        print("Yes")
        sys.exit()

print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("Yes" if input() in "9" else "No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
print("Yes" if "9" in input() else "No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
if n[0] == 9 or n[-1] == 9:
    print('Yes')
else:
    print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
if n[0] == '9' or n[1] == '9':
    print('Yes')
else:
    print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if N[0] == 9 or N[1] == 9:
    print("Yes")
else:
    print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if N[0] == "9" or N[1] == "9":
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
if a[0] == 9 or a[1] == 9:
  print('No')
else:
  print('Yes')

Failing test case input:
1223

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
a = input()
if '9' in a:
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('NYoes'['9'in input()::2])

Failing test case input:
929

Expected output:
Yes


Actual output:
Ye


Fixed submission (verdict: Accepted):
print('NYoe s'['9'in input()::2])

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
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")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if n % 13 == 0:
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(input())
if n[0] == "9" or n[1] == "9":
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if N[0] != 9 and N[1] !=9:
  print('No')
else:
  print('Yes')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if (N[0] != '9') and (N[1] != '9'):
  print('No')
else:
  print('Yes')
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()

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

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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


Failing test case input:
929

Expected output:
Yes


Actual output:
929
Yes


Fixed submission (verdict: Accepted):
i = int(input())
a = int(i/10)
b = i%10
if a == 9 or b == 9:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n[0]or n[1]==9:
	print("Yes")
else:
	print("No")

Failing test case input:
1223

Expected output:
No


Actual output:
Yes


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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(input())

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


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = str(input())

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N = str(input())
S = N.count("9")
if S == 0:
  print("NO")
else:
  print("YES")

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):

N = str(input())
S = N.count("9")
if S == 0:
  print("No")
else:
  print("Yes")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = str(input())

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

Failing test case input:
929

Expected output:
Yes


Actual output:
N0


Fixed submission (verdict: Accepted):
N = str(input())
li = [N[0], N[1]]

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
pos = s.find('9')
if pos != -1:
    print("YES")
else:
    print("NO")


Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
pos = s.find('9')
if pos != -1:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(input())
if N[0] == 9 or N[1] == 9:
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
if N[0] == "9"or N[1] == "9":
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
print('Yes' if 's' in n else 'No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
print('Yes' if '9' in n else 'No')
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str=input()
N1=int(str[0])
N2=int(str[1])
 
if N1==9:
  print("Yes")
elif N2==9:
  print("Yes")

Failing test case input:
1223

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
input_str=input()
 
if int(input_str[0])==9:
  print("Yes")
elif int(input_str[1])==9:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if '9'in N:
    print('yes')
else:
    print('no')


Failing test case input:
929

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
n = input()
if "9" in n:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = str(input())

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


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = str(input())

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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(input())
if a[0]!=9 and a[1]!=9:
  print("No")
else:
  print("Yes")


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=list(input())
if a[0]!="9" and a[1]!="9":
  print("No")
else:
  print("Yes")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input() in '9':
  print('Yes')
else:print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=input()
if a[0] == '9' or a[1] == '9':
  print('Yes')
else:print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
print("YES" if n[0]=='9' or n[1]=='9' else "NO")

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
print("Yes" if n[0]=='9' or n[1]=='9' else "No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
if s[:1]==9 or s[1:]==9:
  print("Yes")
else:
  print("No")
  

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
if s[0]=="9" or s[1]=="9":
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s in '9':
    print("Yes")
else:
    print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if '9' in s:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if int(input()) % 10 == 9:
  print('YES')
else:
  print('NO')

Failing test case input:
929

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n=input()
if '9' in n:
  print('Yes')
else:
  print('No')
Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input()
for c in n:
    if c == '9':
        print('Yes')
    else:
        print('No')


Failing test case input:
929

Expected output:
Yes


Actual output:
Yes
No
Yes


Fixed submission (verdict: Accepted):
n = input()
import sys
for c in n:
    if c == '9':
        print('Yes')
        sys.exit(0)

print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(str(input()))

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


Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = str(input())

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

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=str(input())
if n[0]==9 or n[1]==9:
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
if "9" in n:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
if a[0] == 9 or a[1] == 9:
  print('Yes')
else:
  print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
if '9' in a:
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
if s[0] == 9 or s[1] == 9:
  print('Yes')
else:
  print('No')

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s[0] == '9' or s[1] == '9':
  print('Yes')
else:
  print('No')

Problem: p03605
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = list(map(int, input().split()))
if 9 in n:
  print("Yes")
else:
  print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
if "9" in n:
  print("Yes")
else:
  print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=str(input())
if n[0]==9 or n[1]==9:
	print("Yes")
else:
	print("No")

Failing test case input:
929

Expected output:
Yes


Actual output:
No


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

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(map(int, input().split()))

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

Failing test case input:
929

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(input())
if "9" in N:
    print("Yes")
else:
    print("No")

Problem: p03605
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
print('YES'if '9'in a else 'NO')

Failing test case input:
1223

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a=input()
print('Yes'if '9'in a else 'No')
Problem: p03030
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

xy = []
for i in range(N):
    xy.append(input().split())

sort_xy = sorted(xy)

for i in range(N):
    for j in range(N):
        if xy[i][0] == sort_xy[j][0]:
            if xy[i][1] == sort_xy[j][1]:
                print(j + 1)
                

Failing test case input:
6
pgkt`vbjo` 2
nqomxd 2
`ny]j -2
ajbyo 1
owensl 2
jb`qnvuajl -9

Expected output:
3
4
6
2
5
1


Actual output:
6
4
1
2
5
3


Fixed submission (verdict: Accepted):
N = int(input())

xy = []
for i in range(N):
    x, y = map(str, input().split())
    y = int(y)
    xy.append([x, y])

sort_xy = sorted(sorted(xy), key=lambda x: (x[0],-x[1]))

for i in range(N):
    for j in range(N):
        if sort_xy[i][0] == xy[j][0]:
            if sort_xy[i][1] == xy[j][1]:
                print(j + 1)

Problem: p03030
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
data =[]
for i in range(n):
  sity, score = input().split()
  data.append([sity, int(score),i+1])
  
data.sort(key=lambda x:x[0])
data.sort(key=lambda x:x[1], reverse=True)
for j in range(n):
  print(data[j][2])
  

  

Failing test case input:
10
yakutsk 10
yakutsl 28
yakutsk 30
y`kutsk 0
yakutsk 50
yakutsk 60
yakutsk 70
yakktsu 80
yakutsk 90
yakutsk 100

Expected output:
4
8
10
9
7
6
5
3
1
2


Actual output:
10
9
8
7
6
5
3
2
1
4


Fixed submission (verdict: Accepted):
n = int(input())
data =[]
for i in range(n):
  sity, score = input().split()
  data.append([sity, int(score),i+1])
  
data.sort(key=lambda x:(x[0], -x[1]))
for j in range(n):
  print(data[j][2])

Problem: p03030
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s_p_list = list()
for i in range(n):
    input_ = input().split()
    input_[1] = int(input_[1])
    input_.append(i + 1)
    s_p_list.append(input_)


s_p_list.sort(key=lambda x: (x[0], -x[1]))

print(s_p_list)

for s, p, i in s_p_list:
    print(i)


Failing test case input:
10
yakuusk 18
kyastul 53
yskutak 76
kvk`tsy 0
yakvtsk 5
yavktsk 60
yajutsk 70
ybkksut 18
kstukay 233
yakutsk 110

Expected output:
9
4
2
7
10
1
5
6
8
3


Actual output:
[['kstukay', 233, 9], ['kvk`tsy', 0, 4], ['kyastul', 53, 2], ['yajutsk', 70, 7], ['yakutsk', 110, 10], ['yakuusk', 18, 1], ['yakvtsk', 5, 5], ['yavktsk', 60, 6], ['ybkksut', 18, 8], ['yskutak', 76, 3]]
9
4
2
7
10
1
5
6
8
3


Fixed submission (verdict: Accepted):
n = int(input())
s_p_list = list()
for i in range(n):
    input_ = input().split()
    input_[1] = int(input_[1])
    input_.append(i + 1)
    s_p_list.append(input_)


s_p_list.sort(key=lambda x: (x[0], -x[1]))



for s, p, i in s_p_list:
    print(i)
Problem: p03030
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
L = [list(map(str, input().split())) for _ in range(N)]

for i in range(N):
    L[i].append(i+1)

L.sort(key=lambda x:x[1], reverse=True)
L.sort(key=lambda x:x[0])

for l in L:
    print(l[2])
    

Failing test case input:
10
yakutsk 10
yakstul 53
yakutsk 30
y`kutsk 0
yakvtsk 18
yakutsk 60
yakutsk 70
yakktus 23
kstukay 90
yakutsk 100

Expected output:
9
4
8
2
10
7
6
3
1
5


Actual output:
9
4
8
2
7
6
3
10
1
5


Fixed submission (verdict: Accepted):
N = int(input())
L = [list(map(str, input().split())) for _ in range(N)]

for i in range(N):
    L[i][1] = int(L[i][1])
    L[i].append(i+1)

L.sort(key=lambda x:x[1], reverse=True)
L.sort(key=lambda x:x[0])

for l in L:
    print(l[2])

Problem: p03030
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
list1 = []
for i in range(n):
    s,p = input().split()
    p = int(p)
    list1.append([s, p, i+1])
list1.sort()
for i in list1:
    print(i[2])


Failing test case input:
10
yakutsk 10
yakutsl 28
yakutsk 30
y`kutsk 0
yakutsk 50
yakutsk 60
yakutsk 70
yakktsu 80
yakutsk 90
yakutsk 100

Expected output:
4
8
10
9
7
6
5
3
1
2


Actual output:
4
8
1
3
5
6
7
9
10
2


Fixed submission (verdict: Accepted):
n = int(input())
list1 = []
for i in range(n):
    s,p = input().split()
    p = int(p)
    list1.append([s, -p, i+1])
list1.sort()
for i in list1:
    print(i[2])

Problem: p03030
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
*a, = [input().split() for i in range(n)]

for i in range(n):
    a[i].append(i+1)

a_point = sorted(a, key = lambda x: x[1], reverse = True)
a_name = sorted(a_point, key = lambda x: x[0])
ans = []
for i in a_name:
    print(i[2])

Failing test case input:
10
yakutsk 10
yakstul 53
yakutsk 30
y`kutsk 0
yakvtsk 18
yakutsk 60
yakutsk 70
yakktus 23
kstukay 90
yakutsk 100

Expected output:
9
4
8
2
10
7
6
3
1
5


Actual output:
9
4
8
2
7
6
3
10
1
5


Fixed submission (verdict: Accepted):
n = int(input())
*a, = [input().split() for i in range(n)]

for i in range(n):
    a[i].append(i+1)

a_point = sorted(a, key = lambda x: int(x[1]), reverse = True)

a_name = sorted(a_point, key = lambda x: x[0])

ans = []

for i in a_name:
    print(i[2])