qyliang/CodeNanoFix huggingface dataset:
Buggy code:
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')

Fixed code:
a,b,c = map(int,input().split())
if a == 7:
    if b == 5 and c == 5:
        print('YES')
    else:
        print('NO')
elif b == 7:
    if a == 5 and c == 5:
        print('YES')
    else:
        print('NO')
elif c == 7:
    if a == 5 and b == 5:
        print('YES')
    else:
        print('NO')
else:
    print('NO')
Buggy code:
A,B,C = list(map(int(),input().split()))
d = sorted([A,B,C])
if d[0] == 5 and d[1] == 5 and d[2] == 7:
    print("YES")
else:
    print("NO")

Fixed code:
A,B,C = list(map(int,input().split()))
d = sorted([A,B,C])
if d[0] == 5 and d[1] == 5 and d[2] == 7:
    print("YES")
else:
    print("NO")
Buggy code:
a=list(map(int,input.split()))
if a.sort==[5,5,7]:
  print("YES")
else:
  print("NO")

Fixed code:
a=list(map(int,input().split()))
if sorted(a)==[5,5,7]:
  print("YES")
else:
  print("NO")
Buggy code:
a,b,c=input().split(" ")
num=[a,b,c]
num.remove("5") if "5" in num else None
num.remove("5") if "5" in num else None
num.remove("7") if "7" in num else None
if num ==[]:
    print("YES")
else:
    print("N0")

Fixed code:
a,b,c=input().split(" ")
num=[a,b,c]
num.remove("5") if "5" in num else None
num.remove("5") if "5" in num else None
num.remove("7") if "7" in num else None
if num ==[]:
    print("YES")
else:
    print("NO")
Buggy code:
A = list(int,input().split())
if (A.count(5)) == 2 and (A.count(7)) == 1:
  print("YES")
else:
  print("NO")

Fixed code:
A = list(map(int,input().split()))
if (A.count(5)) == 2 and (A.count(7)) == 1:
  print("YES")
else:
  print("NO")
Buggy code:
a,b,c=map(int,input().split())
if	a*b*c==5*5*7
	print("YES")
else
	print("NO")

Fixed code:
a,b,c = map(int, input().split())
if a*b*c == 5*7*5:
    print("YES")
else:
    print("NO")
Buggy code:
import sys
from heapq import heappush, heappop, heapify
import math
from math import gcd
import itertools as it
from collections import deque 

input = sys.stdin.readline

def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))

INF = 1001001001

# ---------------------------------------

def main():
    A = inpl()
    A.sort()
    if A[0]==A[1]==5 and A[2]==7:
        print("Yes")
    else:
        print("No")

main()


Fixed code:
import sys
from heapq import heappush, heappop, heapify
import math
from math import gcd
import itertools as it
from collections import deque 

input = sys.stdin.readline

def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))

INF = 1001001001

# ---------------------------------------

def main():
    A = inpl()
    A.sort()
    if A[0]==A[1]==5 and A[2]==7:
        print("YES")
    else:
        print("NO")

main()
Buggy code:
def test(): 
  arr = input()
  arr = arr.split()
  arr = arr.sort()
  if arr==['5', '5', '7']:
    print("YES")
  else:
    print("NO")  
test()
  	

Fixed code:
def test(): 
  arr = input()
  arr = arr.split()
  arr = sorted(arr)
  if arr==['5', '5', '7']:
    print("YES")
  else:
    print("NO")  
test()
Buggy code:
a,b,c = map(int,input().split())
if (a==b==5 and c==7) or (a==c==5 b==7) or (b==c==5 a==7):
  print('YES')
else:
  print('NO')

Fixed code:
a, b, c = map(int, input().split())

if a == 7:
  if b == 5 and c ==5:
    print("YES")
  else:
    print("NO")
elif a == 5:
  if (b == 5 and c == 7) or (b == 7 and c == 5):
    print("YES")
  else:
    print("NO")
else:
  print("NO")
Buggy code:
from sys import stdin

A,B,C = [int(x) for x in stdin.realine().rstrip().split()]

if A+B+C == 17 and A>=5 and B>=5 and C>=5:
  print("YES")
else:
  print("NO")
  

Fixed code:
from sys import stdin

A,B,C = [int(x) for x in stdin.readline().rstrip().split()]

if A + B + C == 17 and A >= 5 and B >= 5 and C >= 5:
        print("YES")
else:
        print("NO")
Buggy code:
n = list(map(int , input().split()))
if n.count(5) == 2 and n.count(7) == 1:
    print("YES")
else:
    print("No")

Fixed code:
n = list(map(int , input().split()))
if n.count(5) == 2 and n.count(7) == 1:
    print("YES")
else:
    print("NO")
Buggy code:
A,B,C=map(int,input().split())
if (A==B==7 and C==5 ) or (A==C==7 and B==5) or (B==C==7 and A==5):
  print("YES")
else:
  print("NO")

Fixed code:
A,B,C=map(int,input().split())
if (A==B==5 and C==7 ) or (A==C==5 and B==7) or (B==C==5 and A==7):
  print("YES")
else:
  print("NO")
Buggy code:
A,B,C=map(int,input().split())
if A==B==5 and C==7;
    print("YES")
elif A==C==5 and B==7;
    print("YES")
elif B==C==5 and A==7;
    print("YES")
else;
    print("NO")

Fixed code:
A,B,C=map(int,input().split())
if A==B==5 and C==7:
    print("YES")
elif A==C==5 and B==7:
    print("YES")
elif B==C==5 and A==7:
    print("YES")
else:
    print("NO")
Buggy code:
l =list(map(int,input().split()))
print(l)
if l.count(5)==2 and l.count(7)==1:
    print("YES")
else:
    print("NO")


Fixed code:
l =list(map(int,input().split()))
if l.count(5)==2 and l.count(7)==1:
    print("YES")
else:
    print("NO")
Buggy code:
from functools import reduce
from operator import mul

n = int(input())
s = reduce(mul, map(int, input().split(' ')))
print('YES' if s == 175 else 'NO')


Fixed code:
from functools import reduce
from operator import mul

s = reduce(mul, map(int, input().split(' ')))
print('YES' if s == 175 else 'NO')
Buggy code:
list=list(map(int,input().split()))
print("YES" if list.count(7)==2 and list.count(5)==1 else "No")

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

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

Fixed code:
a, b, c = list(map(int, input().split()))

if (a + b + c == 17) and (a * b * c == 5 * 5 * 7):
    print("YES")
else:
    print("NO")
Buggy code:
d = list(map(int,input().split()))
print(d)
if d.count(5)==2 and d.count(7) == 1 :
    print("YES")
else :
    print("NO")

Fixed code:
abc = list(map(int, input().split()))
if abc.count(5) == 2 and abc.count(7) == 1:
    print('YES')
else:
    print('NO')
Buggy code:
l = [int(i) for i in range(input().split()]
print('YES') if  l.count(5) == 2 and l.count(7) == 1 else print('NO') 
                        

Fixed code:
l = [int(i) for i in  input().split()]
print('YES') if  l.count(5) == 2 and l.count(7) == 1 else print('NO')
Buggy code:
#wlist = list(map(int,input().split()))
nlist = list(input().split())
if nlist.couunt("5") ==2 and nlist.count("7")==1:
    print("YES")
else:
    print("NO")

Fixed code:
#wlist = list(map(int,input().split()))
nlist = list(input().split())
if nlist.count("5") ==2 and nlist.count("7")==1:
    print("YES")
else:
    print("NO")
Buggy code:
list1 = list(map(int,input().split()))
list1.sort()
if list1[0] == 5 and list[1] ==7 and list[2]==7:
  print("YES")
else:
  print("NO")

Fixed code:
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')
Buggy code:
form = input()
form = form.split()
form.sort()

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

Fixed code:
form = input()
form = form.split()
form.sort()

if form == ["5","5","7"]:
  print("YES")
else:
  print("NO")
Buggy code:
num = list(map(int, input().split()))

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

Fixed code:
num = list(map(int, input().split()))

ans = sorted(num)
if(ans[0]==5 and ans[1]==5 and ans[2] == 7):
    print("YES")
else:
    print("NO")
Buggy code:
S = list(map(int, input().split()))
S.sort()
if S.sort()==[5,5,7]:
  return("YES")
else:
  return("NO")

Fixed code:
S = list(map(int, input().split()))
S.sort()
if S == [5,5,7]:
  print("YES")
else:
  print("NO")
Buggy code:
num = [x for x in input().split() ]
count5 = num.count5("5")
count7 = num.count7("7")
if count5 == 2 and count7 == 1:
  print("YES")
else:
  print("NO")

Fixed code:
num = [x for x in input().split() ]
count5 = num.count("5")
count7 = num.count("7")
if count5 == 2 and count7 == 1:
  print("YES")
else:
  print("NO")
Buggy code:
words = list(map(int, input().split())
if words.count(7) == 1 and words.count(5) == 2:
    print('YES')
else:
    print('NO')

Fixed code:
words = list(map(int, input().split()))
if words.count(7) == 1 and words.count(5) == 2:
    print('YES')
else:
    print('NO')
Buggy code:
S = list(map(int, input().split()))
S.sort()
if S.sort()==[5,5,7]:
  print("YES")
else: print("NO")

Fixed code:
abc = list(map(int, input().split()))

abc.sort()

if abc == [5, 5, 7]:
    print("YES")
else:
    print("NO")
Buggy code:
a,b,c=map(int,input().split())
if (a==5 and b=5 and c==7) or(a==5 and c==5 and b==7) or (c==5 and b==5 and a==7):
  print("YES")
else:
  print("NO")

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

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

Fixed code:

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")
Buggy code:
a=list(input().split())
if a==[5,5,7] or a==[5,7,5] or a==[7,5,5]:
    print("YES")
else:
    print("NO")

Fixed code:
a=list(map(int,input().split()))
if a==[5,5,7] or a==[5,7,5] or a==[7,5,5]:
    print("YES")
else:
    print("NO")
Buggy code:
ls=list(map(int,input().split()))
ls1=[[5,7,5],[5,5,7],[7,5,5]]
if ls in ls1:
  print('YES')
  else:
    print('NO')

Fixed code:
ls=list(map(int,input().split()))
ls1=[[5,7,5],[5,5,7],[7,5,5]]
if ls in ls1:
	print('YES')
else:
	print('NO')
Buggy code:
A=list(map(int,input().split()))

A.sort()
flag=0

if A[0]==5:
    if A[1]==5:
        if A[2]==7:
            print("YES")
            flag+=1
            
if flag==0:
    print("No")

Fixed code:
A=list(map(int,input().split()))

A.sort()
flag=0

if A[0]==5:
    if A[1]==5:
        if A[2]==7:
            print("YES")
            flag+=1

if flag==0:
    print("NO")
Buggy code:
word = list(map(int,input().split()))
#print(word) ['5', '5', '7']
a=0
b=0
for i in range(3):
    if word[i]==int(5):
        a=a+1
for i in range(3):
    if word[i]==int(7):
        b=b+1
print(a,b)
if a==2 and b==1:
	print("YES")
else:
  	print("NO")


Fixed code:
word = list(map(int,input().split()))
#print(word) ['5', '5', '7']
a=0
b=0
for i in range(3):
    if word[i]==int(5):
        a=a+1
for i in range(3):
    if word[i]==int(7):
        b=b+1
if a==2 and b==1:
	print("YES")
else:
  	print("NO")
Buggy code:
num5 = 0
num7 = 0
for num in map(int, input().split()):
    print(num)
    if num == 5:
        num5 += 1
    elif num == 7:
        num7 += 1
    else:
        print('NO')
        exit()

if num5 == 2 and num7 == 1:
    print('YES')
else:
    print('NO')

Fixed code:
num5 = 0
num7 = 0
for num in map(int, input().split()):
    if num == 5:
        num5 += 1
    elif num == 7:
        num7 += 1
    else:
        print('NO')
        exit()

if num5 == 2 and num7 == 1:
    print('YES')
else:
    print('NO')
Buggy code:
a,b,c = input().split()

if(a + b + c) != 17:
  print("NO")
elif(a + b + c) = 17:
    if(a + b == 10) || (b + c == 10) || (c + a == 10):
      print("YES")
    else:
      print("NO")
else:
  print("NO")

Fixed code:
a,b,c = input().split()
 
a = int(a)
b = int(b)
c = int(c)
 
 
if(a + b + c) != 17:
  print("NO")
elif(a + b + c) == 17:
    if(a + b == 10) | (b + c == 10) | (c + a == 10):
      print("YES")
    else:
      print("NO")
else:
  print("NO")
Buggy code:
a, b, c = map(int,input().split())

if a == 5 and b == 5 and c == 7:
  print(YES)

elif a == 5 and b == 7 and c == 5:
  print(YES)

elif a == 7 and b == 5 and c == 5:
  print(YES)

else:
  print(NO)
  

Fixed code:
a, b, c = map(int, input().split())

if a == 7 and b == 5 and c == 5:
	print('YES')
elif b == 7 and c == 5 and a == 5:
	print('YES')
elif c == 7 and a == 5 and b == 5:
	print('YES')
else:
	print('NO')
Buggy code:
S = "".join(list(map(str,input().split())))
if S.count("5") == 2 and S.count("7") == 1:
  print("YES")
else:
  print("NO)

Fixed code:
S = "".join(list(map(str,input().split())))
if S.count("5") == 2 and S.count("7") == 1:
  print("YES")
else:
  print("NO")
Buggy code:
a,b,c=map(int,input().split())
if((a*b*c)%7=0)and((a*b*c)/7=25):
	print("YES")
else:
  	print("NO")

Fixed code:
a,b,c=map(int,input().split())
if((a*b*c)%7==0)and((a*b*c)/7==25):
	print("YES")
else:
  	print("NO")
Buggy code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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


Fixed code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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()
Buggy code:
a = list(map(int, raw_input().split()))

a.sort()

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

Fixed code:
a = list(map(int, input().split()))

a.sort()

if a == [5,5,7]:
    print("YES")
else:
    print("NO")
Buggy code:
a=[int(x) for x in input().split()]

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

Fixed code:
a=[int(x) for x in input().split()]

if 7 in a:
  a.remove(7)
  
if a==[5,5]:
  print('YES')
else:
  print('NO')
Buggy code:
a = list(map(int,input().split()))
if sum(a) == 19:
  print("YES")
else:
  print("NO")

Fixed code:
a = list(map(int,input().split()))
if sum(a) == 17:
  print("YES")
else:
  print("NO")
Buggy code:
a = list(map(int,input().split()))
if a.count("7") == 1 and a.count("5") == 2:
  print("YES")
else:
  print("NO")

Fixed code:
a = list(map(str,input().split()))
if a.count("7") == 1 and a.count("5") == 2:
  print("YES")
else:
  print("NO")
Buggy code:
a,b,c=map(int,input().split())
s=[a,b,c]
if s.count("5")==2 and a+b+c==17:
  print("YES")
else:
  print("NO")
  

Fixed code:
a,b,c=map(int,input().split())
s=[a,b,c]
d=s.count(5)
if d==2 and a+b+c==17:
  print("YES")
else:
  print("NO")
Buggy code:
a,b,c=map(int,input().split())
if a+b+c=17 and a*b*c=175:
    print(YES)
else:
    print(NO)


Fixed code:
a,b,c=map(int,input().split())
if a+b+c==17 and a*b*c==175:
    print("YES")
else:
    print("NO")
Buggy code:
S = sorted(list(map(int, input().split(' '))))
print(S)
total = S[0] + S[1] + S[2]
if(total == 17):
    if (S[0]==5 and S[1]==5):
        print('YES')
    else:
        print('NO')
else:
    print('NO')


Fixed code:
S = sorted(list(map(int, input().split(' '))))
total = S[0] + S[1] + S[2]
if(total == 17):
    if (S[0]==5 and S[1]==5):
        print('YES')
    else:
        print('NO')
else:
    print('NO')
Buggy code:
nums = map(int, input().split(" "))
if nums.count(5) == 2 and nums.count(7) == 1:
  print("YES")
else:
  print("NO")

Fixed code:
nums = list(map(int, input().split()))
if nums.count(5) == 2 and nums.count(7) == 1:
  print("YES")
else:
  print("NO")
Buggy code:
a, b, c = map(int, input().split(' '))
if a + b + c != 17:
  print 'NO'
else if a * b * c != 175:
  print 'NO'
else:
  print 'YES'

Fixed code:
a, b, c = map(int, input().split(' '))
if a + b + c != 17:
  print('NO')
elif a * b * c != 175:
  print('NO')
else:
  print('YES')
Buggy code:
a,b,c =map(int,input().split())
if a == 5 && b==5 && c==7:
  print("YES")
elif a == 5 && b==7 && c==5:
  print("YES")
elif a == 7 && b==5 && c==5:
  print("YES")
else :
  print("NO")

Fixed code:
a,b,c =map(int,input().split())
if a == 5 and b==5 and c==7:
  print("YES")
elif a == 5 and b==7 and c==5:
  print("YES")
elif a == 7 and b==5 and c==5:
  print("YES")
else :
  print("NO")
Buggy code:
haiku = int(input())
x = haiku.split(' ')
num_5 = 0
num_7 = 0

for v in x:
	if x[v] == 5:
		num_5 ++
	elif x[v] == 7:
		num_7 ++

if num_5 == 2 and num_7 == 1
	print('YES')
else
	print('NO')

Fixed code:
haiku = input()
x = haiku.split()
num_5 = 0
num_7 = 0

for v in x:
    v = int(v)
    if v == 5:
        num_5 += 1
    elif v == 7:
        num_7 += 1

if num_5 == 2 and num_7 == 1:
    print('YES')
else:
    print('NO')
Buggy code:
def canConstructHaiku(arr):
	arr.sort()
 	if arr[0] == 5 and arr[1] == 5 and arr[2] == 7:
    	return True
    return False

arr = list(map(int, input().split()))
print("YES" if canConstructHaiku(arr) else "NO")

Fixed code:
def canConstructHaiku(arr):
  arr.sort()
  if arr[0] == 5 and arr[1] == 5 and arr[2] == 7:
    return True
  return False
 
arr = list(map(int, input().split()))
print("YES" if canConstructHaiku(arr) else "NO")
Buggy code:
a,b,c=map(int,input().split())
if a+b+c==17:
  if a==5 and b==5:
    print("YES")
  if a==5 and c==5:
    print("YES")
  if b==5 and c==5:
    print("YES")
print("NO")

Fixed code:
a,b,c=map(int,input().split())
 
if a+b+c==17:
  if a==5 and b==5:
    print("YES")
  elif a==5 and c==5:
    print("YES")  
  elif b==5 and c==5:
    print("YES") 
  else:
  	print("NO")
else:
	print("NO")
Buggy code:
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:
        print("NO")

Fixed code:
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")
Buggy code:
A,B,C=map(int,input().split())

hoge=set([A,B,C])
if hoge==set([5,7]):
    if A+B+C=17:
        print("YES")
    else:
        print("NO")

Fixed code:
A,B,C=map(int,input().split())

hoge=set([A,B,C])
if hoge==set([5,7]):
    if A+B+C==17:
        print("YES")
    else:
        print("NO")
else:
    print("NO")
Buggy code:
x = list(map(str,input().split()))
if '2' == x.value_counts('5') and '1' == x.value_counts('7'):
  print('YES')
else:
  print('NO')

Fixed code:
x = list(map(str,input().split()))
if x.count('5') == 2 and x.count('7') == 1:
  print('YES')
else:
  print('NO')
Buggy code:
A,B,C = map(int,input().split())
if A=5 and B=5 and C=7:
    print("YES")
elif A=5 and C=5 and B=7:
    print("YES")
elif C=5 and B=5 and A=7:
    print("YES")
else:
    print("NO")

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

a = A.count(5)
b = A.count(7)

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

Fixed code:
A = list(input().split())

a = A.count('5')
b = A.count('7')

if a == 2 and b == 1:
  print('YES')
else:
  print('NO')
Buggy code:
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")



Fixed code:
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")
Buggy code:
go = 0
nana = 0
num = input().split()
for i in num:
  if i == "5":
    go+=1
  elif i == "7":
    nana+=1
if (go==2) and (nana==1):
  print(YES)
else:
  print(NO)

Fixed code:
go=0
nana=0
num = input().split()
for i in num:
  if i == "5":
    go+=1
  if i == "7":
    nana+=1
if (go==2) and (nana==1):
  print("YES")
else:
  print("NO")
Buggy code:
A, B, C = map(int, input().split())
if [A, B, C].count(5) = 2 and [A, B, C].count(7) = 1:
	print("YES")
else:
  	print("NO")



Fixed code:
A, B, C = map(int, input().split())
if [A, B, C].count(5) == 2 and [A, B, C].count(7) == 1:
	print("YES")
else:
  	print("NO")
Buggy code:
X, Y, Z = map(int, input().split())

num_5 = 0
num_7 = 0

if X == 5:
  num_5 += 1
if Y == 5:
  num_5 += 1
if Z == 5:
  num_5 += 1
  
if X == 7:
  num_7 += 1
if Y == 7:
  num_7 += 1
if Z == 7:
  num_7 += 1

if num_5 == 2 && num_7 == 1:
    print("YES")
else:
    print("NO")

Fixed code:
X, Y, Z = map(int, input().split())
 
num_5 = 0
num_7 = 0
 
if X == 5:
  num_5 += 1
if Y == 5:
  num_5 += 1
if Z == 5:
  num_5 += 1
  
if X == 7:
  num_7 += 1
if Y == 7:
  num_7 += 1
if Z == 7:
  num_7 += 1
  
if num_5 == 2 and num_7 == 1:
    print("YES")
else:
    print("NO")
Buggy code:
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")


Fixed code:
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")
Buggy code:
l = (list)(map(int,input().split()))

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

Fixed code:
l = (list)(map(int, input().split()))
l = sorted(l)

ans = 'NO'
if l[0] == 5 and l[1] == 5 and l[2] == 7:
    ans = 'YES'
print(ans)
Buggy code:
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))):
  ifa+B+c==17:
    print("YES")
  else:
    print("NO")
else:
  print("NO")  

Fixed code:
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))):
  if(a+b+c==17):
    print("YES")
  else:
    print("NO")
else:
  print("NO")
Buggy code:
A, B, C = map(int, input().split())

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

Fixed code:
A, B, C = map(int, input().split())

if A + B + C == 17:
  if (A == 5 or 7) and (B == 5 or 7) and (C == 5 or 7):
    print('YES')
  else:
    print('NO')
else:
  print('NO')
Buggy code:
a = list(map(int, intput().split()))
a.sort()
if a = [5, 5, 7]:
  print("YES")
else:
  print("NO")

Fixed code:
a = list(map(int, input().split()))
a.sort()
if a == [5, 5, 7]:
  print("YES")
else:
  print("NO")
Buggy code:
ans=list(map(int,input().split()))
dic={}
for x in ans:
    if(x!=5 and x!=7):
        print("NO")
        break
    else:
        dic[str(x)]=dic.get(x,0)+1
if(dic["5"]!=2 and dic["7"]!=1):
	print("NO")
else:
 	print("YES")


Fixed code:
ans=list(map(int,input().split()))
dic={}
flg=0
for x in ans:
    if(x!=5 and x!=7):
        flg=-1
        break
    else:
        dic[str(x)]=dic.get(str(x),0)+1
if(flg==-1):
    print("NO")
else:
    if(dic["5"]!=2 or dic["7"]!=1):
	       print("NO")
    else:
 	      print("YES")
Buggy code:
list = list(map(int,input().split()))

five = 0
seven = 0

for i in list:
  if i == 5:
    five += 1
  elif i == 7:
    seven += 1
  else:
      pass

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

Fixed code:
list = list(map(int,input().split()))

five = 0
seven = 0

for i in list:
  if i == 5:
    five += 1
  elif i == 7:
    seven += 1
  else:
      pass

if seven == 1 and five == 2:
  print("YES")
else:
    print("NO")
Buggy code:
list = list(map(int,input().split()))

if list == [5,5,7]:
    print(YES)
elif list == [5,7,5]:
    print(YES)
elif list == [7,5,7]:
    print(YES)
else:
    print(NO)

Fixed code:
list = list(map(int,input().split()))

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