ZhenlongDai/ACPR huggingface dataset:
Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B,C=map(int,input().split())

iroha=[A,B,C]

if (iroha.count(5)==2) and (iroha.count(7)==1):
    print("Yes")
else:
    print("No")

Failing test case input:
3 -2 7

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
x = list(map(int,input().split()))
 
if (x.count(5) == 2) and (x.count(7) == 1):
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

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


def main():
    a = list(map(int,input().split()))
    if sum(a) == 12:
        return 'YES'
    return 'NO'



print(main())


Failing test case input:
9 4 -1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

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


def main():
    a = list(map(int,input().split()))
    if sum(a) == 17:
        return 'YES'
    return 'NO'



print(main())

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
b = a.count('5')
c = a.count('7')
if b == 2 and c ==1:
            print('YES')
else:
            print('NO')

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
b = a.count(5)
c = a.count(7)
if b == 2 and c ==1:
            print('YES')
else:
            print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int,input().split()))
A.sort()
if A[0] == 5 and A[1] == 5 and A[2] == 7:
  print("YEs")
else:
  print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
YEs


Fixed submission (verdict: Accepted):
A = list(map(int,input().split()))
A.sort()
if A[0] == 5 and A[1] == 5 and A[2] == 7:
  print("YES")
else:
  print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
nums = list(map(int,input().split(' ')))
nums.sort()
if nums == [5,5,7]:
  print('Yes')
else:
  print('No')

Failing test case input:
20 4 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
nums = list(map(int,input().split(' ')))
nums.sort()
if nums == [5,5,7]:
  print('YES')
else:
  print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(input().split())
s.sort()
d=int(s[0])*100+int(s[1])*10+int(s[2])
d=d-557
if d==0:
    print("Yes")
else:
    print("No")

Failing test case input:
4 8 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s=list(input().split())
s.sort()
d=int(s[0])*100+int(s[1])*10+int(s[2])
d=d-557
if d==0:
    print("YES")
else:
    print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
As=input().split()

count5=0
count7=0

for A in As:
    if A=="5":
        count5+=1
    elif A=="7":
        count7+=1

if count5==2 and count7==1:
    print("Yes")
else:
    print("No")

Failing test case input:
-1 -1 5

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
As=input().split()

count5=0
count7=0

for A in As:
    if A=="5":
        count5+=1
    elif A=="7":
        count7+=1

if count5==2 and count7==1:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main(input: list):
    possible575 = sorted(input) == [5, 5, 7]
    print(possible575)


input = list(map(int, input().split()))
main(input)


Failing test case input:
2 0 9

Expected output:
NO


Actual output:
False


Fixed submission (verdict: Accepted):
def main(input: list):
    possible575 = sorted(input) == [5, 5, 7]
    print("YES" if possible575 else "NO")


input = list(map(int, input().split()))
main(input)

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
haiku = list(int(i) for i in input().split())
seven = 0
five = 0
for i in range(3):
    if int(haiku[i]) == 7:
        seven += 1
    elif int(haiku[i]) == 5:
        five += 1
if seven == 2 and five == 1:
    print("YES")
else:
    print("NO")

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
haiku = list(int(i) for i in input().split())
seven = 0
five = 0
for i in range(3):
    if int(haiku[i]) == 7:
        seven += 1
    elif int(haiku[i]) == 5:
        five += 1
if seven == 1 and five == 2:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int, input().split())

if( (a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)):
    print('yes')
else:
    print('no')


Failing test case input:
-1 0 5

Expected output:
NO


Actual output:
no


Fixed submission (verdict: Accepted):
a,b,c = map(int, input().split())

if( (a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)):
    print('YES')
else:
    print('NO')

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



a = list(map(int,input().split()))

if a.sort() == [5,5,7]:
    print("YES")
else:
    print("NO")


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):



a = list(map(int,input().split()))
a.sort()


if a == [5,5,7]:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
form = input()
form = form.split()

if form == ["5","7","5"]:
  print("YES")
else:
  print("NO")


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
form = input()
form = form.split()
form.sort()

if form == ["5","5","7"]:
  print("YES")
else:
  print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = sorted(map(len, input().split()))

if [a, b, c] == [5, 5, 7]:
  print("YES")
else:
  print("NO")


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a, b, c = sorted(map(int, input().split()))

if [a, b, c] == [5, 5, 7]:
  print("YES")
else:
  print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == 5:
        count5 += 1
    elif num[i] == 7:
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == '5':
        count5 += 1
    elif num[i] == '7':
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = map(int, input().split(' '))
A_sum = sum(A)
if A_sum == 17:
  print('Yes')
else:
  print('No')

Failing test case input:
2 5 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A = map(int, input().split(' '))
A_sum = sum(A)
if A_sum == 17:
  print('YES')
else:
  print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
[A,B,C]=map(len, input().split())
[A,B,C].sort()
if [A,B,C]==[5,5,7]:
	print("YES")
else:print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
[a,b,c]=map(int, input().split())
list1=[a,b,c]
list1.sort()
if list1==[5,5,7]:
	print("YES")
else:print("NO")

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

if s.count(5) == 2 and s.count(7) == 1:
  print('Yes')
else:
  print('No')

Failing test case input:
28 4 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s = list(map(int, input().split()))

if s.count(5) == 2 and s.count(7) == 1:
  print('YES')
else:
  print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ABC = input().split()
print('YES' if ABC.count('5') == 2 and ABC.count('7') == 1 else 'N0')

Failing test case input:
2 0 12

Expected output:
NO


Actual output:
N0


Fixed submission (verdict: Accepted):
ABC = input().split()
print("YES" if ABC.count("5") == 2 and ABC.count("7") == 1 else "NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=list(map(int,input().split()))
if l.count(5)==2 and l.count(7)==1 and len(l)==3:
    print('Yes')
else:
    print('No')

Failing test case input:
2 4 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
l=list(map(int,input().split()))
if l.count(5)==2 and l.count(7)==1 and len(l)==3:
    print('YES')
else:
    print('NO')
Problem: p04043
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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():
    X = list(map(int, readline().split()))

    X.sort()
    if X[0] == 5 and X[1] == 5 and X[2] == 7:
        print('YES')
    else:
        print('No')

    return


if __name__ == '__main__':
    main()


Failing test case input:
-1 -2 5

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
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():
    X = list(map(int, readline().split()))

    X.sort()
    if X[0] == 5 and X[1] == 5 and X[2] == 7:
        print('YES')
    else:
        print('NO')

    return


if __name__ == '__main__':
    main()

Problem: p04043
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = list(map(int, input().split()))
s.sort()
if s == [5, 7, 7]:
  print("YES")
else:
  print("NO")

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
s = list(map(int, input().split()))
s.sort()
if s == [5, 5, 7]:
  print("YES")
else:
  print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int,input().split()))
A.sort()
if A == [5,5,7]:
    print("Yes")
else:
    print("No")

Failing test case input:
3 -2 4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A = list(map(int,input().split()))
A.sort()
if A == [5,5,7]:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input().split()

count1 = 0
count2 = 0

for s in S: 
  if s == "5":
    count1 += 1
  elif s == "7":
    count2 += 1
  
if count1 == 2 and count2 == 1:
  print("Yes")
else:
  print("No")
    

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
No


Fixed submission (verdict: Accepted):
S = input().split()

count1 = 0
count2 = 0

for s in S: 
  if s == "5":
    count1 += 1
  elif s == "7":
    count2 += 1
  
if count1 == 2 and count2 == 1:
  print("YES")
else:
  print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(map(int, input().split()))
if l.count(5) == 2 and l.count(7) == 1:
    print("Yes")
else:
    print("No")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
Yes


Fixed submission (verdict: Accepted):
l = sorted(list(map(int, input().split())))

if l.count(5) == 2 and l.count(7) == 1:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b , c = map(int, input().split())
flag = a*b*c==175 and a+b+c==17 
print('Yes' if flag else 'No')

Failing test case input:
2 -2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b , c = map(int, input().split())
flag = a*b*c==175 and a+b+c==17 
print('YES' if flag else 'NO')
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int, input().split()))

i5 = 0
i7 = 0

for i in a:
  if i==5:
    i5+=1
  if i==7:
    i7+=1

if i5==2 & i7==1:
  print("YES")
else:
  print("NO")


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))

i5 = 0
i7 = 0

for i in a:
  if i==5:
    i5+=1
  if i==7:
    i7+=1

if i5==2 and i7==1:
  print("YES")
else:
  print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
inpstr = input()

inp = inpstr.split(" ")
inp = list(map(int,inp))

c5 = 0
c7 = 0
for i in inp:
  if inp==5:
    c5 += 1
  elif inp==7:
    c7 += 1
    
if c5 == 2 and c7 == 1:
  print('YES')
else:
  print('No')

Failing test case input:
1 -2 0

Expected output:
NO


Actual output:
No


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

inp = inpstr.split(" ")
inp = list(map(int,inp))

c5 = 0
c7 = 0
for i in inp:
  if i==5:
    c5 += 1
  elif i==7:
    c7 += 1
if c5 == 2 and c7 == 1:
  print('YES')
else:
  print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ABC = list(map(int,input().split()))
ans = 'No'
count_5 = 0
count_7 = 0

for abc in ABC:
    if abc==5:
        count_5 += 1
    elif abc==7:
        count_7 += 1
if count_5==2 and count_7==1:
    ans = 'Yes'
print(ans)


Failing test case input:
20 4 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
ABC = list(map(int,input().split()))
ans = 'NO'
count_5 = 0
count_7 = 0

for abc in ABC:
    if abc==5:
        count_5 += 1
    elif abc==7:
        count_7 += 1
if count_5==2 and count_7==1:
    ans = 'YES'
print(ans)

Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()

print('Yes' if(S.count('5') == 2 and S.count('7') == 1) else 'No')


Failing test case input:
1 0 7

Expected output:
NO


Actual output:
No


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

print('YES' if(S.count('5') == 2 and S.count('7') == 1) else 'NO')

Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, B, C = map(int, input().split())
fsf = [A, B, C]
if fsf.count(5) == 2 & fsf.count(7) == 1:
  print("YES")
else:
  print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
A, B, C = map(int, input().split())
fsf = [A, B, C]
if (fsf.count(5) == 2) & (fsf.count(7) == 1):
    print("YES")
else:
    print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
li = input().split()
print(li)
if ('7' in li) == True:
    if ('5' in li) == True:
        if li[0] == '5':
            if li[1] == '5' or li[2] == '5':
                print("Yes")
            else:
                print("No")
        elif li[1] == '5' and li[2] == '5':
            print("Yes")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Failing test case input:
5 4 0

Expected output:
NO


Actual output:
['5', '4', '0']
No


Fixed submission (verdict: Accepted):
li = input().split()
if ('7' in li) == True:
    if ('5' in li) == True:
        if li[0] == '5':
            if li[1] == '5' or li[2] == '5':
                print("YES")
            else:
                print("NO")
        elif li[1] == '5' and li[2] == '5':
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = [x for x in input().split()]
print("Yes" if s.count("5") == 2 and s.count("7") == 1 else "No")

Failing test case input:
0 0 4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s = [x for x in input().split()]
print("YES" if s.count("5") == 2 and s.count("7") == 1 else "NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C = map(int, input().split())

l = [A, B, C]

l = sorted(l, reverse=True)

if l[0] == l[1] == 5 and l[2] == 7:
    print('YES')
else:
    print('NO')


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
A, B, C = map(int, input().split())

l = [A, B, C]

l = sorted(l)

if l[0] == l[1] == 5 and l[2] == 7:
    print('YES')
else:
    print('NO')

Problem: p04043
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
li = list(map(int, input().split()))
if li == [5,5,7] or [5,7,5] or [7,5,5]:
  print('Yes')
else:
  print('No')


Failing test case input:
0 0 5

Expected output:
NO


Actual output:
Yes


Fixed submission (verdict: Accepted):
li = list(map(int, input().split()))
if li == [5,5,7] or li == [5,7,5] or li == [7,5,5]:
  print('YES')
else:
  print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def irohachan(A,B,C):
  if (A == 5 or A ==7) and (B == 5 or B ==7) and (C == 5 or C ==7) and (A+B+C ==17):
    print("YES")
  else:
    print("NO")

Failing test case input:
7 -2 0

Expected output:
NO


Actual output:

Fixed submission (verdict: Accepted):
A,B,C = list(map(int, input().split()))
if  (A == 5 or A ==7) and (B == 5 or B ==7) and (C == 5 or C ==7) and (A+B+C ==17):
    print("YES")
else:
    print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
line = input().split()


cnt5 = line.count("5")
cnt7 = line.count("7")

if cnt5 == 2 and cnt7 == 1:
    print("Yes")
else:
    print("No")

Failing test case input:
4 -1 7

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
line = input().split()

cnt5 = line.count("5")
cnt7 = line.count("7")

if cnt5 == 2 and cnt7 == 1:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin
lis = stdin.readline().rstrip().split()
a = lis[0]
b = lis[1]
c = lis[2]

if a == 5:
    if b == 5 and c ==7:
        print("YES")
    elif b == 7 and c ==5:
        print("YES")
    else:
        print("NO")
elif a == 7:
    if b == 5 and c == 5:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
from sys import stdin
lis = stdin.readline().rstrip().split()
a = int(lis[0])
b = int(lis[1])
c = int(lis[2])

if a == 5 or a == 7:
    if a == 5:
        if b == 5 and c ==7:
            print("YES")
        elif b == 7 and c ==5:
            print("YES")
        else:
            print("NO")

    elif a == 7:
        if b == 5 and c == 5:
            print("YES")
        else:
            print("NO")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def haiku(sentence_length_list):

    length_five_cnt=0
    length_seven_cnt=0
    for s in sentence_length_list:
        if s==5:
            length_five_cnt=length_five_cnt+1
        if s==7:
            length_seven_cnt=length_seven_cnt+1

    if length_five_cnt==2 and length_seven_cnt==1:
        return 'YES'
    else:
        return 'NO'

if __name__=='__main__':
    haiku(input().split())

Failing test case input:
0 0 7

Expected output:
NO


Actual output:

Fixed submission (verdict: Accepted):
def haiku(sentence_length_list):

    length_five_cnt=0
    length_seven_cnt=0
    for s in sentence_length_list:
        if s=='5':
            length_five_cnt=length_five_cnt+1
        if s=='7':
            length_seven_cnt=length_seven_cnt+1

    if length_five_cnt==2 and length_seven_cnt==1:
        return 'YES'
    else:
        return 'NO'

if __name__=='__main__':
    length_list = input().split()
    print(haiku(length_list))

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list1 = list(map(int,input().split()))
list1.sort()
if list1[0]==5 and list1[1]==7 and list1[2]==7:
  print("YES")
else:
  print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
list1 = list(map(int,input().split()))
list1.sort()
if list1[0]==5 and list1[1]==5 and list1[2]==7:
  print("YES")
else:
  print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
  a = list(input().split())
  a = [int(aa) for aa in a]
  a = sorted(a)
  if a==[5,7,7]:
    print('YES')
  else:
    print('NO')
  
  
if __name__ == "__main__":
  main()

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
def main():
  a = list(input().split())
  a = [int(aa) for aa in a]
  a = sorted(a)
  if a==[5,5,7]:
    print('YES')
  else:
    print('NO')
  
  
if __name__ == "__main__":
  main()

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

a, b, c = list(map(int, input().rstrip().split()))
print("YES" if a == 5 and b == 7 and c == 5 else "NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):

data = sorted(list(map(int, input().rstrip().split())))
print("YES" if data == [5, 5, 7] else "NO")

Problem: p04043
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
ls = list(map(int,input().split()))
ls.sort()

if ls[0]==5 and ls[1]==7 and ls[2]==7:
  print("YES")
else:
  print("NO")


Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
ls = list(map(int,input().split()))
ls.sort()
 
if ls[0]==5 and ls[1]==5 and ls[2]==7:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input=sys.stdin.readline

l = list(map(int, input().split()))
l.sort()

if l.count(5) == 2 and l.count(7) == 1:
    print("yes")
else:
    print("no")


Failing test case input:
1 -2 0

Expected output:
NO


Actual output:
no


Fixed submission (verdict: Accepted):
import sys
input=sys.stdin.readline

l = list(map(int, input().split()))
l.sort()

if l.count(5) == 2 and l.count(7) == 1:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = list(map(int, input().split(" ")))
if a+b+c == 17 and (a == b == 5 or b == c == 5 or c == a == 5):
    print("Yes")
else:
    print("No")


Failing test case input:
1 7 3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = list(map(int, input().split(" ")))
if (a == b == 5 and c == 7) or (b == c == 5 and a == 7) or (c == a == 5 and b ==7):
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())

if a+b+c == 17:
  if a == 7 or a == 5:
    if b == 7 or b == 5:
      if c == 7 or c == 5:
        print("YES")
      else:
        print("NO")


Failing test case input:
2 0 3

Expected output:
NO


Actual output:

Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
d=0
if a+b+c == 17:
  if a == 7 or a == 5:
    if b == 7 or b == 5:
      if c == 7 or c == 5:
        print("YES")
        d =1
        
if d == 0:print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
li = [int(i) for i in input().split()]
li.sort()
a = "No"
if li[0] == 5 and li[1] == 5 and li[2] == 7 :
    a = "Yes"
print(a)

Failing test case input:
2 -2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
li = [int(i) for i in input().split()]
li.sort()
a = "NO"
if li[0] == 5 and li[1] == 5 and li[2] == 7 :
    a = "YES"
print(a)

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C = [int(x) for x in input().split()]

if A == 5 and B == 7 and C == 5:
    print('YES')
else:
    print('NO')

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
ABC = [int(x) for x in input().split()]
S = sorted(ABC)

if S[0] == 5 and  S[1] == 5 and  S[2] == 7:
    print('YES')
else:
    print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(map(int,input().split()))
if a[0]*a[1]*a[2] ==5*7*5:
    print("yes")
else : 
    print("no")

Failing test case input:
-1 0 5

Expected output:
NO


Actual output:
no


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
if a[0]*a[1]*a[2] ==5*7*5:
    print("YES")
else : 
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def go_sichi_go(A, B, C):
    S = A+B+C
    if S == 17:
        S = S - max(A, B, C)
        if S == 10:
            S = S - min(A, B, C)
            if S == 5:
                return "YES"
    else:
        return "NO"

Failing test case input:
20 0 0

Expected output:
NO


Actual output:

Fixed submission (verdict: Accepted):
A,B,C = map(int,input().split())
S = A+B+C
if S == 17:
    S = S - max(A, B, C)
    if S == 10:
        S = S - min(A, B, C)
        if S == 5:
            print("YES")
        else:
            pass
    else:
        pass
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = set(map(int,input().split()))
if S == {5,5,7}:
    print('YES')
else:
    print('NO')

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
L = list(map(int,input().split()))
L.sort()
if L == [5,5,7]:
    print('YES')
else:
    print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = []
a = input().split(' ')

if 5 in a:
    a.remove(5)
    if 7 in a:
        a.remove(7)
        if 5 in a:
                print('YES')
        else:
            print('NO')
    else:
        print('NO')
else:
    print('NO')

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a = []
a = input().split(' ')

if '5' in a:
    a.remove('5')
    if '7' in a:
        a.remove('7')
        if '5' in a:
                print('YES')
        else:
            print('NO')
    else:
        print('NO')
else:
    print('NO')
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int, input().split())
s = {a,b,c}
list1 = [a,b,c]
if s == {5,7} and sum(list1) == 17:
  print("Yes")
else :
  print("No")


Failing test case input:
13 4 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c = map(int, input().split())
s = {a,b,c}
list1 = [a,b,c]
if s == {5,7} and sum(list1) == 17:
  print("YES")
else :
  print("NO")

Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


if __name__ == "__main__":
    str_list = [map(int, input().split())]
    if str_list.count(5) == 2 and str_list.count(7) == 1:
        print('YES')
    else:
        print('NO')





Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):


if __name__ == "__main__":
    
    
    
    
    
    str_list = list(map(int, input().split()))
    if sum(str_list) == 17:
        print('YES')
    else:
        print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if a == 5:
  if (b == 5 and c == 7) or (b == 7 and c == 5):
    print('YES')
  else:
    print('NO')
elif b == 5:
  if (a == 5 and c == 7) or (a == 7 and c == 5):
    print('YES')
  else:
    print('NO')
elif c == 5:
  if (a == 5 and b == 7) or (a == 7 and b == 5):
    print('YES')
else:
    print('NO')


Failing test case input:
2 7 5

Expected output:
NO


Actual output:

Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if a == 5:
  if (b == 5 and c == 7) or (b == 7 and c == 5):
    print('YES')
  else:
    print('NO')
elif b == 5:
  if (a == 5 and c == 7) or (a == 7 and c == 5):
    print('YES')
  else:
    print('NO')
elif c == 5:
  if (a == 5 and b == 7) or (a == 7 and b == 5):
    print('YES')
  else:
    print('NO')
else:
    print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())

if (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7) and a + b + c == 17:
  print("Yes")
else:
  print("No")

Failing test case input:
7 -2 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())

if (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7) and a + b + c == 17:
  print("YES")
else:
  print("NO")
Problem: p03895
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
x,num = [],0
for i in range(n):
	a,b = (int(j) for j in input().split())
	x.append((num+a)%86400)
	num = (num+a+b)%86400
x,ans = sorted(x),0
from bisect import bisect
for i in range(n): ans = max(ans,bisect(x,x[i]+10800)-i)
print(ans)

Failing test case input:
10
43196 21072
8364 3781
6000 1200
600 600
300 374
5400 153
6000 5760
6760 3840
6000 9712
3849 794

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
x,num = [],0
for i in range(n):
	a,b = (int(j) for j in input().split())
	x.append((num+a)%86400)
	num = (num+a+b)%86400
x,ans = sorted(x),0
from bisect import bisect
for i in range(n):
	ans = max(ans,bisect(x,x[i]+10800)-i)
	if x[i]<=10800: x.append(x[i]+86400)
print(ans)
Problem: p02289
Buggy submission (Python3, verdict: Wrong Answer):
import heapq
q=[]
b=True
while b:
  n=input()
  if n=="end":
    b=False
    break
  elif n=="extract":
    i=heapq.heappop(q)
    print(-int(i))
  else:
    a,b=n.split()
    b=int(b)
    heapq.heappush(q,-b) 


Failing test case input:
insert 7
insert 0
extract
insert 10
extract
insert 11
extract
extract
end

Expected output:
7
10
11
0


Actual output:

Fixed submission (verdict: Accepted):
import heapq
q=[]
bool1=True
while bool1:
  n=input()
  if n=="end":
    bool1=False
    break
  elif n=="extract":
    i=heapq.heappop(q)
    print(-int(i))
  else:
    a,b=n.split()
    b=int(b)
    heapq.heappush(q,-b)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=[int(x) for x in input().rstrip().split()]
if 1<=A*B:
  print(A*B)
else:
  print(-1)

Failing test case input:
10 29

Expected output:
-1


Actual output:
290


Fixed submission (verdict: Accepted):
A,B=[int(x) for x in input().rstrip().split()]
if 1<=A and A<=9 and 1<=B and B<=9:
  print(A*B)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a or b >= 10:
  print(-1)
else:
  print(a*b)


Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a >= 10 or b >= 10:
  print(-1)
else:
  print(a*b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=[int(x) for x in input().rstrip().split()]
if 1<A*B:
  print(A*B)
else:
  print(-1)

Failing test case input:
33 106

Expected output:
-1


Actual output:
3498


Fixed submission (verdict: Accepted):
A,B=[int(x) for x in input().rstrip().split()]
if 1<=A and A<=9 and 1<=B and B<=9:
  print(A*B)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

if A > 9 and B > 9:
	print(-1)
else:
	print(A*B)

Failing test case input:
47 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

if A > 9 or B > 9:
	print(-1)
else:
	print(A*B)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int, input().split())
if a < 10 & b < 10:
    print(a,b)
else: 
    print(-1)

Failing test case input:
1 29

Expected output:
-1


Actual output:
1 29


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
if a < 10 and b < 10:
    print(a*b)
else: 
    print(-1)

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

if (a < 10 or b < 10):
  print(a*b)
else:
  print(-1)

Failing test case input:
7 15

Expected output:
-1


Actual output:
105


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())

if (a < 10 and b < 10):
  print(a*b)
else:
  print(-1)

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



if 1 <= number[0] and number[0] <= 9:
  if 1 <= number[1] and number[1] <= 9:
    print(number[0] * number[1])
else:
  print('-1')

Failing test case input:
7 29

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
number = list(map(int, input().split()))



if 1 <= number[0] and number[0] <= 9:
  if 1 <= number[1] and number[1] <= 9:
    print(number[0] * number[1])
  else:
    print('-1')
else:
  print('-1')

Problem: p02879
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A, B = map(int, input().split())

if A < 10 and B < 10:
    print(-1)
else:
    print(A*B)

Failing test case input:
7 15

Expected output:
-1


Actual output:
105


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

if A >= 10 or B >= 10:
    print(-1)
else:
    print(A*B)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = input().rstrip().split()

if int(a) > 0 and int(a) < 10:
  if int(b) > 0 and int(b) < 10:
    print(int(a)*int(b))
else:
  print('-1')

Failing test case input:
7 29

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
a, b = input().rstrip().split()

if int(a) > 0 and int(a) < 10:
  if int(b) > 0 and int(b) < 10:
    print(int(a)*int(b))
  else:
    print('-1')
else:
  print('-1')

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int, input().split())
ans = a*b if a<10 or b<10 == 0 else -1
print(ans)

Failing test case input:
1 29

Expected output:
-1


Actual output:
29


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
print(a*b if a<10 and b<10 else -1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int, input().split())
if (9-a)*(9-b)*(a-1)*(b-1)<0:
  print(-1)
else:
  print(a*b)

Failing test case input:
47 1

Expected output:
-1


Actual output:
47


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
if a>9 or b>9 or a<1 or b<1:
  print(-1)
else:
  print(a*b)

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

a, b = map(int, input().split())

if a >= 9 and b >= 9:
  print(a * b)
else:
  print(-1)

Failing test case input:
33 50

Expected output:
-1


Actual output:
1650


Fixed submission (verdict: Accepted):

a, b = map(int, input().split())

if a <= 9 and b <= 9:
  print(a * b)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int,input().split())
if A >= 9 and A != 0:
  print(-1)
else:
  print(A * B)

Failing test case input:
6 14

Expected output:
-1


Actual output:
84


Fixed submission (verdict: Accepted):
A, B = map(int,input().split())
if A > 9 or B > 9:
  print(-1)
elif A == 0 or B == 0:
  print(-1)
else:
  print(A * B)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

for line in sys.stdin:
    A, B = list(map(int, line.split(' ')))

    out = A*B

    if 1 <= out <= 81:
        print(out)
    else:
        print(-1)

Failing test case input:
47 1

Expected output:
-1


Actual output:
47


Fixed submission (verdict: Accepted):
import sys

for line in sys.stdin:
    A, B = list(map(int, line.split(' ')))


    if 1 <= A <= 9 and 1 <= B <= 9:
        out = A*B
        print(out)
    else:
        print(-1)

Problem: p02879
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(int,input().split())
if a<=9 and b<=9:
  print(a*b)
else:
  print('No')

Failing test case input:
34 55

Expected output:
-1


Actual output:
No


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
if a<=9 and b<=9:
  print(a*b)
else:
  print('-1')
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())

if 0<a<10:
  if 0<b<10:
    print(a*b)
else:
  print(-1)

Failing test case input:
3 11

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

if 0<a<10:
  if 0<b<10:
    print(a*b)
  else:
    print(-1)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B=input().split()
if len(A) or len(B) >= 2:
  print("-1")
else:
  print(int(A)*int(B))

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A <10 and B <10:
  print(A*B)
else:
  print("-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())
if A <= 9 & B <= 9:
    ans = "-1"
else: ans = A*B 
print(ans)

Failing test case input:
33 65

Expected output:
-1


Actual output:
2145


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())
if A <= 9 and B <= 9:
    ans = A*B
else: ans = "-1" 
print(ans)

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

number = input().split(" ")
    


if int(number[0]) <= 9 & int(number[1]) <= 9:
    print(int(number[0]) * int(number[1]))
else:
    print(-1)

Failing test case input:
3 11

Expected output:
-1


Actual output:
33


Fixed submission (verdict: Accepted):

number = input().split(" ")

if (int(number[0]) <= 9) & (int(number[1]) <= 9):
    print(int(number[0]) * int(number[1]))
else:
    print(-1)

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

if a > 9 and b >9:
  print(-1)
else:
  print(a*b)

Failing test case input:
1 29

Expected output:
-1


Actual output:
29


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

if a <= 9 and b <= 9:
  print(a*b)
else:
  print(-1)

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

if (a > 0 and a <= 9) or (b > 0 and b <=9):
	print(a*b)
else:
	print("-1")

Failing test case input:
30 1

Expected output:
-1


Actual output:
30


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

if (a > 0 and a <= 9) and (b > 0 and b <=9):
	print(a*b)
else:
	print("-1")

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

if ((a<9) & (b<9)):
    print(a*b)
else:
    print(-1)


Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
 
if ((a<=9) & (b<=9)):
    print(a*b)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = [int(x) for x in input().split()]
a=A[0]
b=A[1]
if a>9 | b>9:
    print(-1)
else:
    print(a*b)


Failing test case input:
32 -1

Expected output:
-1


Actual output:
-32


Fixed submission (verdict: Accepted):
A = [int(x) for x in input().split()]
a=A[0]
b=A[1]
if a>9 or b>9:
    print(-1)
else:
    print(a*b)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A*B<=81:
  print(A*B)
else :
  print("-1")

Failing test case input:
47 0

Expected output:
-1


Actual output:
0


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A<10 and B<10:
  print(A*B)
else :
  print("-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A < 9 and B <9 :

    print ( A * B)
else :
    print ( " -1 "
)



Failing test case input:
9 9

Expected output:
81

Actual output:
 -1 


Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A < 10 and B <10 :

    print ( A * B)
else :
    print (-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
print(0 <= A <= 9 and 0 <= B <= 9)

Failing test case input:
19 57

Expected output:
-1


Actual output:
False


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if 0 <= A <= 9 and 0 <= B <= 9:
    print(A*B)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A<10 and B<10:
  print(A*B)

Failing test case input:
34 55

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):
A,B=map(int,input().split())
if A<10 and B<10:
    print(A*B)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = map(int, input().split())
print("-1" if a>=b>=10 else a*b)

Failing test case input:
6 14

Expected output:
-1


Actual output:
84


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print("-1" if a>=10 or b>=10 else a*b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = [int(i) for i in input().split()]

if A < 9 and B < 9:
    print(A*B)
else:
    print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A,B = [int(i) for i in input().split()]
if A < 10 and B < 10:
    print(A*B)
else:
    print(-1)

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

if a <= 9:
    print(-1)
elif b <= 9:
    print(-1)
else:
    print(a*b)

Failing test case input:
33 65

Expected output:
-1


Actual output:
2145


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

if a > 9:
    print(-1)
elif b > 9:
    print(-1)
else:
    print(a*b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = input().split()
a = int(x[0])
b = int(x[0])
if a <= 9 and b <= 9:
  print(a * b)
else:
  print('-1')

Failing test case input:
7 15

Expected output:
-1


Actual output:
49


Fixed submission (verdict: Accepted):
x = input().split()
a = int(x[0])
b = int(x[1])
if a <= 9 and b <= 9:
  print(a * b)
else:
  print('-1')
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A < 10 or A > 0:
  C = A * B
else:
  C = -1
if B < 10 or B > 0:
  C = A * B
else:
  C = -1
print(C)

Failing test case input:
7 29

Expected output:
-1


Actual output:
203


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A < 10 and A > 0 and B < 10 and B > 0:
  C = A * B
else:
  C = -1

print(C)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int,input().split()) 
print(A,'  ',B)
if A < 10 and B < 10:
    print(A * B)
else:
    print(-1)

Failing test case input:
1 29

Expected output:
-1


Actual output:
1    29
-1


Fixed submission (verdict: Accepted):
A, B = map(int,input().split()) 
if A < 10 and B < 10:
    print(A * B)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b =map(int,input().split())
n=a*b
if 1<= n<= 9:
    if 1<= a<=20:
        if 1<= b<= 20:
            print(a*b)
else:
    print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
 
if 1 <= a <= 9:
    if 1 <= b <= 9:
        print(a * b)
    else:
        print(-1)
else:
    print(-1)

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

if a < 9 and b < 9:
  print(a*b)
else:
  print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

if a <= 9 and b <= 9:
  print(a*b)
else:
  print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = list(map(int, input().split()))
if a > 9 and b > 9:
  print('-1')
else:
  print(a * b)

Failing test case input:
1 29

Expected output:
-1


Actual output:
29


Fixed submission (verdict: Accepted):
a, b = list(map(int, input().split()))
if a > 9 or b > 9:
  print('-1')
else:
  print(a * b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
if a < 1 or a > 9 or b < 1 or b > 9:
  print(-1)
else:
  print(a + b)

Failing test case input:
9 9

Expected output:
81

Actual output:
18


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if a > 9 or b > 9:
  print(-1)
else:
  print(a * b)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
li = []
for i in range(1,10):
    for j in range(1,10):
        if i*j == a*b:
            print(a*b)
            exit()
print(-1)

Failing test case input:
30 1

Expected output:
-1


Actual output:
30


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
li = []
for i in range(1,10):
    for j in range(1,10):
        if i==a and j == b:
            print(a*b)
            exit()
print(-1)
Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A < 9 and B < 9:
    print(A * B)
else:
    print(-1)

Failing test case input:
9 9

Expected output:
81

Actual output:
-1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A <= 9 and B <= 9:
    print(A * B)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int, input().split())
if a and b <= 9:
    print(a * b)
else:
    print(-1)

Failing test case input:
30 2

Expected output:
-1


Actual output:
60


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if a <= 9 and b <= 9:
    print(a * b)
else:
    print(-1)

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




def I(): return int(input())


def IsIl(): return list(map(lambda x: int(x), input().split()))


def InIl(n): return [input() for i in range(n)]


def IsIt(): return map(lambda x: int(x), input().split())


def InIl(n): return map(input() for i in range(n))


def SsSl(): return list(map(lambda x: x, input()))




def SSd():
    from collections import defaultdict
    A = input() 
    dd=defaultdict(int)
    for a in A:
        dd[a]+=1
    return dd

n,m=IsIt()

if n*m > 81:
    print(-1)
else:
    n*m



Failing test case input:
32 -1

Expected output:
-1


Actual output:

Fixed submission (verdict: Accepted):




def I(): return int(input())


def IsIl(): return list(map(lambda x: int(x), input().split()))


def InIl(n): return [input() for i in range(n)]


def IsIt(): return map(lambda x: int(x), input().split())


def InIl(n): return map(input() for i in range(n))


def SsSl(): return list(map(lambda x: x, input()))




def SSd():
    from collections import defaultdict
    A = input() 
    dd=defaultdict(int)
    for a in A:
        dd[a]+=1
    return dd

n,m=IsIt()

if 1 <= n and n <= 9 and 1 <= m and m <= 9:
    print(n*m)
else:
    print(-1)

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
print(A*B) if A >=9 and B >=9 else print('-1')

Failing test case input:
34 74

Expected output:
-1


Actual output:
2516


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
print(A*B) if A <=9 and B <=9 else print('-1')

Problem: p02879
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B=map(int,input().split())
print(A*B if 1<=A<=9 and 1<=B<=9 else "–1")

Failing test case input:
33 57

Expected output:
-1


Actual output:
–1


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
print(A*B if 1 <= A <= 9 and 1 <= B <= 9 else "-1")

Problem: p02879
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a>=10 or b>=10:
  print(a*b)
else:
  print(-1)

Failing test case input:
30 2

Expected output:
-1


Actual output:
60


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a>=10 or b>=10:
  print(-1)
else:
  print(a*b)