ZhenlongDai/ACPR huggingface dataset:
Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, s, c = map(str,input().split())
print('a' + s[0] + 'c')

Failing test case input:
AtCodre Beginndr Cnntest

Expected output:
ABC


Actual output:
aBc


Fixed submission (verdict: Accepted):
a, s, c = map(str,input().split())
print('A' + s[0] + 'C')

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input().split()[1]
print("A" + s + "C")

Failing test case input:
AtCnder nSukd Contest

Expected output:
AnC


Actual output:
AnSukdC


Fixed submission (verdict: Accepted):
s = input().split()[1][0]
print("A" + s + "C")

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c =input().split()
print(str(a)+str(b[0:1])+str(c))

Failing test case input:
AsDorfd etkSn Cnntest

Expected output:
AeC


Actual output:
AsDorfdeCnntest


Fixed submission (verdict: Accepted):
a, b, c =input().split()
print(str(a[0:1])+str(b[0:1])+str(c[0:1]))

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
name1 = input()
name2 = name1.replace(" ","")
name3 = name2[7:]
name4 = name3[:7]
print(name4)
lst1 = list(name4)
print("A" + lst1[0] + "C")

Failing test case input:
AsCoder nSukd Cnntdsu

Expected output:
AnC


Actual output:
nSukdCn
AnC


Fixed submission (verdict: Accepted):
name1 = input()
name2 = name1.replace(" ","")
name3 = name2[7:]
name4 = name3[:7]
lst1 = list(name4)
print("A" + lst1[0] + "C")

Problem: p03860
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b,c=map(str,input().split())
print('A'+b.lower()+'C')

Failing test case input:
AsCodeq ldvSo Cnntdsu

Expected output:
AlC


Actual output:
AldvsoC


Fixed submission (verdict: Accepted):
a,b,c=map(str,input().split())
print('A'+b[0]+'C')

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = input().split()
print(b[0])

Failing test case input:
AtCoder Runkd Contest

Expected output:
ARC


Actual output:
R


Fixed submission (verdict: Accepted):
a,b,c = input().split()
print(a[0] + b[0] + c[0])

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

print("A"+xs[2][0]+"B")

Failing test case input:
AtCoder Befinnes Contest

Expected output:
ABC


Actual output:
ACB


Fixed submission (verdict: Accepted):
xs = input().split()
 
print("A"+xs[1][0]+"C")

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = input().split()
print(a[:1] + b + c[:1])

Failing test case input:
AdCnter nSukd Contest

Expected output:
AnC


Actual output:
AnSukdC


Fixed submission (verdict: Accepted):
a,b,c = input().split()
print(a[:1] + b[:1] + c[:1])

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input().split()
"{}{}{}".format(S[0][0],S[1][0],S[2][0])


Failing test case input:
AtCoder sennifeB Cpntest

Expected output:
AsC


Actual output:

Fixed submission (verdict: Accepted):
S = input().split()
print("{}{}{}".format(S[0][0],S[1][0],S[2][0]))
Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input().split()
print("A"+s[0]+"C")

Failing test case input:
AsCoder nSukd Cnntdsu

Expected output:
AnC


Actual output:
AAsCoderC


Fixed submission (verdict: Accepted):
s = input().split()
print("A"+s[1][0]+"C")

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("A"+input([8])+"C")

Failing test case input:
AsDored Tkuen Cnntset

Expected output:
ATC


Actual output:
[8]AAsDored Tkuen CnntsetC


Fixed submission (verdict: Accepted):
print("A"+input()[8]+"C")

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print(s[8])


Failing test case input:
AsCoder nSuke Cnntdsu

Expected output:
AnC


Actual output:
n


Fixed submission (verdict: Accepted):
s = input()
print('A'+s[8]+'C')

Problem: p03860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c =input().split()
print(str(a)+b[0:1]+str(c))

Failing test case input:
AtCoder dknuR Coptest

Expected output:
AdC


Actual output:
AtCoderdCoptest


Fixed submission (verdict: Accepted):
a, b, c =input().split()
print(str(a[0:1])+str(b[0:1])+str(c[0:1]))
Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
syl=sorted(list(map(int,input().split())))

print(syl)

syl2=[5, 5, 7]

if syl == syl2:
	print('YES')
else:
	print('NO')

Failing test case input:
7 -2 1

Expected output:
NO


Actual output:
[-2, 1, 7]
NO


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

syl2=[5, 5, 7]

if syl == syl2:
	print('YES')
else:
	print('NO')

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

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


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

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

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


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

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

example = ('5', '7', '5')
five = 0
seven = 0
ipt = []
s = input(">")
s = s.split()

for i in s:
    if i == '5':
        five += 1
    elif i == '7':
        seven += 1

if five == 2 and seven == 1:
    print("YES")
else:
    print("NO")

Failing test case input:
0 0 4

Expected output:
NO


Actual output:
>NO


Fixed submission (verdict: Accepted):

example = ('5', '7', '5')
five = 0
seven = 0
ipt = []
s = input()
s = s.split()

for i in s:
    if i == '5':
        five += 1
    elif i == '7':
        seven += 1

if five == 2 and seven == 1:
    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&b==7&c==5:
  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())
if sorted(list((a,b,c)))==[5,5,7]:
  print("YES")
else:
  print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input().split()
s = s[0]+s[1]+s[2]

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


Failing test case input:
-1 0 3

Expected output:
NO


Actual output:
No


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

if (a+b+c).count('5')==2 and (a+b+c).count('7')==1:
  print("YES")
else:
  print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
abc = list(input())
print('YES' if abc.count('5')==2 & abc.count('7')==1 else 'NO')


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
abc = input().replace(' ', '')

print('YES' if abc.count('7')==1 and abc.count('5')==2 else 'NO')
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C = 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")


Failing test case input:
2 0 12

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A, B, C = 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())
MC = [A, B, C]
if MC.count(5)==2 and MC.count(7)==1:
  print("Yes")
else:
  print("No")

Failing test case input:
0 1 2

Expected output:
NO


Actual output:
No


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

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = [map(int,input().split())]

if l == [5,5,7] or l == [5,7,5] or l == [7,5,5]:
    print("Yes")
else: print("No")


Failing test case input:
-1 0 4

Expected output:
NO


Actual output:
No


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

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

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

Failing test case input:
16 4 -2

Expected output:
NO


Actual output:
No


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

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input().split()
print(["NO","YES"][n.count("7") ==2 and n.count("5") ==1])

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
n = input().split()
print(["NO","YES"][n.count("7")==1 and n.count("5")==2])

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

D = 0
E = 0

if A == 5:
    D += 1

if A == 7:
    E += 1

if B == 5:
    D += 1

if B == 7:
    E += 1

if C == 5:
    D += 1

if C == 7:
    E += 1

if D == 2 and E==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(str, input().split())

D = 0
E = 0

if A == "5":
    D =D + 1

if A == "7":
    E =E + 1

if B == "5":
    D =D + 1

if B == "7":
    E =E + 1

if C == "5":
    D =D + 1

if C == "7":
    E =E + 1

if D == 2 and E == 1:
    print("YES")
else:
    print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
D = set(map(int,input().split()))
if D == {5,7,5}:
  print("YES")
else:
  print("NO")


Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


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

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

for i in [5,7,5]:
    if i in nums:
        nums.remove(i)
    else:
        print("No")
        exit()

if len(nums) == 0:
    print("Yes")
else:
    print("No")

Failing test case input:
0 0 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):



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

for i in [5,7,5]:
    if i in nums:
        nums.remove(i)
    else:
        print("NO")
        exit()

if len(nums) == 0:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int, input().split()))
n = sum(x == 7 for x in a)
k = sum(x == 5 for x in a)
if n == 2 and k == 1:
    print("Yes")
else:
    print("No")


Failing test case input:
-1 -1 5

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
n = sum(x == 7 for x in a)
k = sum(x == 5 for x in a)
if n == 1 and k == 2:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
data=list(input().split())
a=0
b=0
for i in range(0,3):
    if data[i]=='5':
        a=a+1
    elif data[i]=='7':
        b=b+1
if (a==1 and b==2):
    print('YES')
else:
    print('NO')

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
data=list(input().split())
a=0
b=0
for i in range(0,3):
    if data[i]=='5':
        a=a+1
    elif data[i]=='7':
        b=b+1
if (a==2 and b==1):
    print('YES')
else:
    print('NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ip = input().split()
A = int(ip[0])
B = int(ip[1])
C = int(ip[2])

boolean = False
if A+B+C==19:
    if A==5 or B==5 or C==5:
        boolean = True

if boolean:
    print("YES")
else:
    print("NO")


Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
ip = input().split()
A = int(ip[0])
B = int(ip[1])
C = int(ip[2])

boolean = False
if A+B+C==17:
    if A==5 or B==5 or C==5:
        boolean = True

if boolean:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X=list(map(int,input().split()))
X.sort(reverse=False)
if X==[5,5,7]:
  print("YES")
else:
  print("NO")
print(X)

Failing test case input:
2 0 0

Expected output:
NO


Actual output:
NO
[0, 0, 2]


Fixed submission (verdict: Accepted):
X=list(map(int,input().split()))
X.sort(reverse=False)
if X==[5,5,7]:
  print("YES")
else:
  print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,C = map(int, input().split())
ABC = [A,B,C]

if sorted(ABC) == [5,5,7]:
    print("Yes")
else:
    print("No")

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
No


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

if sorted(ABC) == [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()))
print("Yes" if A.count(5)==2 and A.count(7)==1 else "No")

Failing test case input:
0 -2 3

Expected output:
NO


Actual output:
No


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

Problem: p04043
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):

a = list(map(int, input().split()))
count5 = 0
count7 = 0
for i in a:
    if i == 5:
        count5 += 1
    elif i == 7:
        count7 += 1
if count5 == 2 and count7 == 1:
    print('Yes')
else:
    print('No')


Failing test case input:
4 2 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):

a = list(map(int, input().split()))
count5 = 0
count7 = 0
for i in a:
    if i == 5:
        count5 += 1
    elif i == 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):
A = list(input().split())

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


Failing test case input:
4 8 -1

Expected output:
NO


Actual output:
No


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

if A.count(7) == 1 and A.count(5) == 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 == 5 or A == 7:
  if B == 5 or B == 7:
    if C == 5 or C == 7:
      if A + B + C == 17:
        print('Yes')
      else:
        print('No')
    else:
      print('No')
  else:
  	print('No')
else:
  print('No')
  

Failing test case input:
2 0 1

Expected output:
NO


Actual output:
No


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

if A == 5 or A == 7:
  if B == 5 or B == 7:
    if C == 5 or C == 7:
      if A + B + C == 17:
        print('YES')
      else:
        print('NO')
    else:
      print('NO')
  else:
  	print('NO')
else:
  print('NO')

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

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


Failing test case input:
13 4 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
x = [int(i) for i in 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):
li=list(map(int,input().split()))
print("YES" if li.sort()==[5,5,7] else "NO")


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


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

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

if a == 5 :
    at += 1
elif a == 7 :
    at += 10

if b == 5 :
    bt += 1
elif b == 7 :
    bt += 10

if c == 5 :
    ct += 1
elif c == 7 :
    ct += 10


if  at + bt + ct == 21 :
    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())
at = 0
bt = 0
ct = 0

if a == 5 :
    at += 1
elif a == 7 :
    at += 10

if b == 5 :
    bt += 1
elif b == 7 :
    bt += 10

if c == 5 :
    ct += 1
elif c == 7 :
    ct += 10


if  at + bt + ct == 12 :
    print("YES")

else :
    print("NO")

Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
mylist = [4,7,5]
x = mylist.count(5)
y = mylist.count(7)
 
if x == 2 and y == 1:
  print("YES")
else:
  print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


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

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
flagY = 0
flagN = 0
a,b,c = input().split(" ")
if len(a)==7:
    if len(b)==5 and len(c)==5:
        flagY = 1
    else:
        flagN = 1
if len(b)==7:
    if len(a)==5 and len(c)==5:
        flagY = 1
    else:
        flagN = 1
if len(c)==7:
    if len(b)==5 and len(a)==5:
        flagY = 1
    else:
        flagN = 1
if flagY ==1:
    print("YES")
elif flagY == 0:
    print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
flagY = 0
flagN = 0
a,b,c = [int(i) for i in input().split(" ")]
if a==7:
  if b==5 and c==5:
    flagY = 1
  else:
    flagN = 1
if b==7:
  if a==5 and c==5:
    flagY = 1
  else:
    flagN = 1
if c==7:
  if b==5 and a==5:
    flagY = 1
  else:
    flagN = 1
if flagY ==1:print("YES")
elif flagY == 0:print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(input())
s.sort(key=lambda x:len(x))
if len(s[0])==7 and len(s[1])==5 and len(s[2])==5:
  print("YES")
else:
  print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
s=list(map(int,input().split()))
s.sort()
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):
sets = set(map(int, input().split()))
print('YES' if sets == set([5, 7, 5]) else 'NO')



Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


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

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = list(map(int,input().split()))
if(5 in num and 7 in num):
    if(sum(num)==17):
        print("YES")
else:
    print("NO")

Failing test case input:
2 5 7

Expected output:
NO


Actual output:

Fixed submission (verdict: Accepted):
num = list(map(int,input().split()))
if(5 in num and 7 in num and sum(num) == 17):
    print("YES")
else:
    print("NO")

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

sor_len_list = sorted([len(a), len(b), len(c)])

if sor_len_list == [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())

sor_len_list = sorted([a, b, c])

if sor_len_list == [5, 5, 7]:
    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:
-1 -1 8

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):
    print('YES')
else:
    print('NO')

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

Failing test case input:
-1 -2 5

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
if sorted(input().split())==['5','5','7']:
    print('YES')
else:
    print('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):
a=list(map(int,input().split()))
if sum(a) == 17:
	a.sort()
	if a[0]==5 and a[1]==5:
		print('Yes')
	else:
		print('No')			
else:
	print('No')

Failing test case input:
16 4 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
if sum(a) == 17:
	a.sort()
	if a[0]==5 and a[1]==5:
		print('YES')
	else:
		print('NO')
else:
	print('NO')
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter
A = Counter(map(int, input().split()))

print (A)

Failing test case input:
2 0 1

Expected output:
NO


Actual output:
Counter({2: 1, 0: 1, 1: 1})


Fixed submission (verdict: Accepted):
from collections import Counter
A = Counter(map(int, input().split()))

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

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

Failing test case input:
0 -2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if a+b+c == 17:
    print("YES")
else:
    print("NO")

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

Failing test case input:
-1 0 5

Expected output:
NO


Actual output:
No


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

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = [int(i) for i in 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:
0 1 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = [int(i) for i in 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):
a=[int(x) for x in input().split()]

if 7 in a:
  a.remove(7)
  
if a==[5,5]:
  print('YES')
else:
  print('No')

Failing test case input:
-1 0 4

Expected output:
NO


Actual output:
No


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

if 7 in a:
  a.remove(7)
  
if a==[5,5]:
  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 and B == C == 7:
    print("YES")
elif A==B==7 and C==5:
    print("YES")
elif A==C==7 and B==5:
    print("YES")
else:
    print("NO")

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


Fixed submission (verdict: Accepted):
A, B, C = map(int,input().split())
if A == 7 and B == C == 5:
    print("YES")
elif A==B==5 and C==7:
    print("YES")
elif A==C==5 and B==7:
    print("YES")
else:
    print("NO")

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

Failing test case input:
7 -2 0

Expected output:
NO


Actual output:
No


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

Failing test case input:
13 4 -2

Expected output:
NO


Actual output:
aaa


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):
s = input().split()

if s==['5','5','7'] or s==['5','7','5'] or s==['7','5','5']:
    print("OK")
else:
    print("NO")


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
OK


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

if s==['5','5','7'] or s==['5','7','5'] or s==['7','5','5']:
    print("YES")
else:
    print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YES" if (5, 5, 7) == sorted(tuple(map(int, input().split()))) else "NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


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

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

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
YES


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

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

Failing test case input:
6 4 0

Expected output:
NO


Actual output:
[0, 4, 6]
NO


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

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

Failing test case input:
1 0 0

Expected output:
NO


Actual output:

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

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

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
abc = list(map(int, input().split()))
abc.sort()
if (abc[0]==5) and (abc[1]==5) and (abc[2]==7):
  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 == 5 and c == 7) or (b == c == 5 and a ==7) or (c == a == 5 and b ==7):
    print("Yes")
else:
    print("No")


Failing test case input:
2 -1 0

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):
s = [int(i) for i in input().split(' ')]

n = [0] * 2

for i in s:
    if i == 5:
        n[0] += 1
    elif i == 7:
        n[1] += 1

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

Failing test case input:
16 4 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s = [int(i) for i in input().split(' ')]

n = [0] * 5

for i in s:
    if i == 5:
        n[0] += 1
    elif i == 7:
        n[1] += 1

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

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

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


Failing test case input:
20 0 1

Expected output:
NO


Actual output:
[20, 0, 1]
NO


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


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

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

Failing test case input:
2 7 3

Expected output:
NO


Actual output:
False


Fixed submission (verdict: Accepted):
s = 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())
print(a*b*c==175 and a+b+c==17)

Failing test case input:
5 5 14

Expected output:
NO


Actual output:
False


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):
inp = input().split()
if inp.count('7') == 2 and inp.count('5') == 1:
  print("YES")
else:
  print("NO")


Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


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

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


Failing test case input:
1 7 3

Expected output:
NO


Actual output:
['1', '7', '3']
NO


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

Failing test case input:
4 4 0

Expected output:
NO


Actual output:
[4, 4, 0]
NO


Fixed submission (verdict: Accepted):
d = list(map(int,input().split()))
if d.count(5)==2 and d.count(7) == 1 :
    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
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):
ABC = input().split()
print('YES' if ABC.count('5') == 2 and ABC.count('7') ==1  else 'N0')


Failing test case input:
2 4 3

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):
A,B,C = map(int,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):
a, b, c = map(int, input().split())
if sorted((a, b, c)) == [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()))
S.sort()
if S.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):
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[0] == 5:
  if a[1] == 5:
    if a[2] == 7:
      print("YES")
print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
YES
NO


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):
a, b, c = map(int,input().split())
d = [a, b, c]
if d.count(5) == 2 and d.count(7) == 1:
    print("Yes")
    
else:
    print("No")

Failing test case input:
7 7 5

Expected output:
NO

Actual output:
No


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())
d = [a, b, c]
if d.count(5) == 2 and d.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())
print("YNEOS"[a+b+c-17or 7-a^b^c::2])

Failing test case input:
5 5 14

Expected output:
NO


Actual output:

Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split());print("YNEOS"[a+b+c!=17or a^b^c!=7::2])

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) & (iroha.count(7)==1):
    print("Yes")
else:
    print("No")

Failing test case input:
29 0 0

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):
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:
9 4 -1

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):
[a,b,c]=input().split()
[A,B,C]=map(len, [a,b,c])
haiku=[A,B,C]
haiku.sort()
if haiku==[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):
A = list(map(int, input().split()))
A.sort()
print(A)
if A == [5,5,7]:
  print("YES")
else:
  print("NO")

Failing test case input:
-1 -2 5

Expected output:
NO


Actual output:
[-2, -1, 5]
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):
a,b,c=map(int, input().split())
print("Yes" if max(a, b, c)==7 and min(a,b,c)==5 and a+b+c==17 else "No")


Failing test case input:
3 -2 4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,b,c=map(int, input().split())
print("YES" if max(a, b, c)==7 and min(a,b,c)==5 and a+b+c==17 else "NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C = input().split()
MC = [A, B, C]
if MC.count("5")==2:
  print("Yes")
else:
  print("No")

Failing test case input:
2 1 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A, B, C = map(int, input().split())
MC = [A, B, C]
if MC.count(5)==2 and MC.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())
if 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:
7 7 5

Expected output:
NO

Actual output:
YES


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

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
lis = list(map(int,input().split()))
if sum(lis) == 22 and 5 in lis and 7 in lis:
  print("YES")
else:
  print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


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

if sum(lis) == 17 and 5 in lis and 7 in lis:
  print("YES")
else:
  print("NO")

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
nums = [int(e) for e in input().split()]

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

Failing test case input:
-2 -1 4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
nums = [int(e) for e in input().split()]

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

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

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


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

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
hoge = tuple(map(lambda x : int(x), input().split(" ")))

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


Failing test case input:
4 -2 7

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
hoge = tuple(map(lambda x : int(x), input().split(" ")))

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

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


Failing test case input:
0 1 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
s = list(map(int, input().split()))
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):
inp=input().split()
prod = int(inp[0]) * int(inp[1]) * int(inp[2])
resid1 = prod
resid2 = prod
if (prod == 175) & (resid1==0) & (resid2==0):
  print('YES')
else:
  print('NO')

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
inp=input().split()
prod = int(inp[0]) * int(inp[1]) * int(inp[2])


if (prod == 175):
  print('YES')
else:
  print('NO')

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

N5=0
N7=0

if a==5:
  N5 +=1
elif a==7:
    N7 +=1

if b==5:
  N5 +=1
elif b==7:
    N7 +=1
    
if c==5:
  N5 +=1
elif c==7:
    N7 +=1
    
if (N5==2)*(N7==1):
  print('Yes')
else:
    print('No')

Failing test case input:
0 0 4

Expected output:
NO


Actual output:
No


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

N5=0
N7=0

if a==5:
  N5 +=1
elif a==7:
    N7 +=1

if b==5:
  N5 +=1
elif b==7:
    N7 +=1
    
if c==5:
  N5 +=1
elif c==7:
    N7 +=1
    
if (N5==2)*(N7==1):
  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==7:
  if b==5 and c==5:
    print("YES")
elif b==7:
  if a==5 and c==5:
    print("YES")
elif c==7:
  if a==5 and b==5:
    print("YES")
else:
  print("NO")

Failing test case input:
7 9 5

Expected output:
NO


Actual output:

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

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

print('Yes' if ABC == [5, 5, 7] else 'No')


Failing test case input:
5 4 0

Expected output:
NO


Actual output:
No


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

print('YES' if ABC[0] * ABC[1] * ABC[2] == 175 else 'NO')

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

Failing test case input:
0 1 2

Expected output:
NO


Actual output:
False


Fixed submission (verdict: Accepted):
print('YES' if sorted(input().split()) == ['5','5','7'] else 'NO')

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C = map(int, input().split())
if A*B*C == 5*5*7:
  print("YEAS")
else:
  print("NO")

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
YEAS


Fixed submission (verdict: Accepted):
A, B, C = 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):
a, b, c = input().split(' ')

cnt5 = 0
cnt7 = 0
for num in [a, b, c]:
    if num == 5:
        cnt5 += 1
    if num == 7:
        cnt7 += 1

if cnt5 == 2 and cnt7 == 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 = [int(s) for s in input().split(' ')]

cnt5 = 0
cnt7 = 0
for num in [a, b, c]:
    if num == 5:
        cnt5 += 1
    if num == 7:
        cnt7 += 1

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

Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(input().split())
a.sort()
print("YES" if a==["5","5",7] else "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()
print("YES" if a==[5,5,7] else "NO")

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

Failing test case input:
1 -1 4

Expected output:
NO


Actual output:
['1', '-1', '4']
YES


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

Problem: p04043
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def test(): 
  arr = input()
  arr = arr.split()
  arr = sorted(arr)
  if arr==[5, 5, 7]:
    print("YES")
  else:
    print("NO")  
test()
  	

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
def test(): 
  arr = input()
  arr = arr.split()
  arr = sorted(arr)
  if arr==['5', '5', '7']:
    print("YES")
  else:
    print("NO")  
test()

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

a = len(s[0])
b = len(s[1])
c = len(s[2])

count_5 = 0
if a == 5:
  count_5 += 1
if b == 5:
  count_5 += 1
if c == 5:
  count_5 += 1
  
count_7 = 0
if a == 7:
  count_7 += 1
if b == 7:
  count_7 += 1
if c == 7:
  count_7 += 1
  
if count_5 == 2 and 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):
s = input().split()

a = int(s[0])
b = int(s[1])
c = int(s[2])

count_5 = 0
if a == 5:
  count_5 += 1
if b == 5:
  count_5 += 1
if c == 5:
  count_5 += 1
  
count_7 = 0
if a == 7:
  count_7 += 1
if b == 7:
  count_7 += 1
if c == 7:
  count_7 += 1
  
if count_5 == 2 and count_7 == 1:
  print("YES")
else:
  print("NO")
Problem: p04043
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = map(int, input().split())
cnt_5 = 0
cnt_7 = 0
for n in N:
    if n == 5 :
        cnt_5 += 1
    elif n == 7 :
        cnt_7 += 1

if cnt_5 == 2 & cnt_7 == 1:
    print('Yes')
else:
    print('N0')


Failing test case input:
9 4 -1

Expected output:
NO


Actual output:
N0


Fixed submission (verdict: Accepted):
a = [x for x in input().split()]
cnt_5 = 0
cnt_7 = 0
for x in a:
    if x == '5':
        cnt_5 += 1
    elif x == '7':
        cnt_7 += 1

print('YES' if cnt_5 == 2 and cnt_7 == 1 else 'NO')

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

Failing test case input:
2 4 3

Expected output:
NO


Actual output:
No


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

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




def main():
    ABC = list(map(int, input().split()))
    print('Yes' if ABC.count(5) == 2 and ABC.count(7) == 1 else 'No')


if __name__ == "__main__":
    main()


Failing test case input:
1 0 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):




def main():
    ABC = list(map(int, input().split()))
    print('YES' if ABC.count(5) == 2 and ABC.count(7) == 1 else 'NO')


if __name__ == "__main__":
    main()

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

if a[0] == 5 and a[2] == 5:
  if a[1] == 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()))

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

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

Failing test case input:
5 5 7

Expected output:
YES

Actual output:
NO


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

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

a = 0
b = 0
for i in range(len(l)):
  if l[i] == 5:
    a = a + 1
  elif l[i] == 7:
    b = b + 1

if (a==2 or b ==1):
  print("Yes")
else:
  print("No")

Failing test case input:
2 -2 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
l = [int(i) for i in input().split()]

a = 0
b = 0
for i in range(len(l)):
  if (l[i] == 5):
    a = a + 1
  elif (l[i]) == 7:
    b = b + 1
  else:
    pass

if (a==2 and b ==1):
  print("YES")
else:
  print("NO")