qyliang/CodeNanoFix huggingface dataset:
Buggy code:
l = list(input().split())
print("YES") if l.count("5") == 2 & l.count("7") == 1 else print("NO")

Fixed code:
l = list(input().split())
print("YES") if (l.count("5") == 2) & (l.count("7") == 1) else print("NO")
Buggy code:
X=list(map(int,input().split()))
X.sort(reverse=False)
if X==[5,5,7]:
  print("YES")
else:
  print("NO")
print(X)

Fixed code:
X=list(map(int,input().split()))
X.sort(reverse=False)
if X==[5,5,7]:
  print("YES")
else:
  print("NO")
Buggy code:
I=input().split()
c5=0
c7=0

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

Fixed code:
I=input().split()
c5=0
c7=0

for i in I:
  if i=="5":
    c5+=1
  elif i=="7":
    c7+=1
if c5==2 and c7==1:
  print("YES")
else:
  print("NO")
Buggy code:
T = [int(x) for x in input().split()]
print(T)
Ts = sorted(T)
if Ts.count(5)==2 and Ts.count(7):
    print("YES")
else:
    print("NO")

Fixed code:
T = [int(x) for x in input().split()]
Ts = sorted(T)
if Ts.count(5)==2 and Ts.count(7):
    print("YES")
else:
    print("NO")
Buggy code:
a = int(input())
b = int(input())
c = int(input())

list = [a,b,c]

if(7 in list):
    if list.count(5)==2:
        print("YES")
    else:
        print("NO")
else:
    print("NO")


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

list = [a,b,c]

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

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

Fixed code:
num = list(map(int,input().split()))
if(5 in num and 7 in num and sum(num) == 17):
    print("YES")
else:
    print("NO")
Buggy code:
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')

Fixed code:
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')
Buggy code:
lst = map(int, input().split())
print("YES" if lst.count(5) == 2 and lst.count(7) == 1 else "NO")

Fixed code:
lst = list(map(int, input().split()))
print("YES" if lst.count(5) == 2 and lst.count(7) == 1 else "NO")
Buggy code:
A, B, C = map(int, input().split())
if A == 5 and B == 7 and C == 7:
  print("YES")
elif A == 7 and B == 5 and C == 7:
  print("YES")
elif A == 7 and B == 7 and 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:
a,b,c=input().split()
if (int(a)+int(b)+int(c))==17:
    if ((int(a)==5 or int(a)==7) and (int(b)==5 or int(b)==7) and (int(c)==5 or int(c==7))):
        print("YES")
    else:
        print("NO")
else:
    print("NO")
 
 

Fixed code:
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):
  ans = 'YES'
else:
  ans = 'NO'
print(ans)
Buggy code:
abc = map(int,input().split())
"YES" if sum(abc) == 17 and abc.count(5) else "NO"

Fixed code:
abc = list(map(int,input().split()))
print("YES" if sum(abc) == 17 and abc.count(5) else "NO")
Buggy code:
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")


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

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


Fixed code:
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")
Buggy code:

if input().rstrip in ("5 5 7","5 7 5","7 5 5"):
  print("YES")
else:
  print("NO")

Fixed code:

if input().rstrip() in ("5 5 7","5 7 5","7 5 5"):
    print("YES")
else:
    print("NO")
Buggy code:
A,B,C=map(int,input().sprit())
if sorted[A,B,C]=[5,5,7]:
  print("YES")
else:
  print("NO")
  

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

for index, clause in enumerate(clause_list):
  if clause = 5:
    clause_list.pop(index)
    break
    
for index, clause in enumerate(clause_list):
  if clause = 7:
    clause_list.pop(index)
    break
    
for index, clause in enumerate(clause_list):
  if clause = 5:
    clause_list.pop(index)
    break
    
print('YES' if len(clause_list) == 0 else 'NO')

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

for index, clause in enumerate(clause_list):
  if clause == 5:
    clause_list.pop(index)
    break

for index, clause in enumerate(clause_list):
  if clause == 7:
    clause_list.pop(index)
    break

for index, clause in enumerate(clause_list):
  if clause == 5:
    clause_list.pop(index)
    break

print('YES' if len(clause_list) == 0 else '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 == 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:
a,b,c = map(int,(input().split()))
num = []
num +=[a,b,c]

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

Fixed code:
a,b,c = map(int,(input().split()))
num = []
num +=[a,b,c]

five = num.count(5)
seven = num.count(7)

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

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

Fixed code:
numbers = list(map(int,input().split()))
if numbers.count(5) == 2 and numbers.count(7) == 1:
    print('YES')
else:
    print('NO')
Buggy code:
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")

Fixed code:
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")
Buggy code:
hoge = list(map(int, input().split()))
huga = sorted(hoge)
if huga == [5,5,7]:
  print("YES")
elif:
  print("NO")


Fixed code:
hoge = list(map(int, input().split()))
huga = sorted(hoge)
if huga == [5,5,7]:
  print("YES")
else:
  print("NO")
Buggy code:
L = map(int, input().split())
print("YES" if 5 in L and 7 in L and sum(L) == 17 else "NO")

Fixed code:
L = list(map(int, input().split()))
print("YES" if 5 in L and 7 in L and sum(L) == 17 else "NO")
Buggy code:
A = sorted(list(map(int, input().split())))
print('YES' if A[0] == 5 and A[1] == 7 and A[2] == 7 else 'NO')

Fixed code:
A = sorted(list(map(int, input().split())))
print('YES' if A[0] == 5 and A[1] == 5 and A[2] == 7 else 'NO')
Buggy code:
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 == 7 and b == 5) or (a == 5 and b == 7):
    print('YES')
else:
    print('NO')

Fixed code:
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')
Buggy code:
sort_list = list(int(map, input().split()))
if sort_list.count(5) == 1 and sort_list.count(7) == 2:
  print("YES")
else:
  print("NO")

Fixed code:
sort_list = list(map(int, input().split()))
if sort_list.count(7) == 1 and sort_list.count(5) == 2:
  print("YES")
else:
  print("NO")
Buggy code:
i = list(map(int, input().split(" ")))
#print(s)
#print(s[1])
#import pdb; pdb.set_trace()

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


Fixed code:
i = list(map(int, input().split(" ")))
#print(s)
#print(s[1])
#import pdb; pdb.set_trace()

if  [5, 5, 7] == sorted(i):
    print("YES")
else:
    print("NO")
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 == 5:
    if b == 5:
        if c == 7:
            print("YES")
        else:
            print("NO")
    elif b == 7:
        if c == 5:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
elif a == 7:
    if b == 5:
        if c == 5:
            print("YES")
        else:
            print("NO")
    elif b == 5:
        if c == 7:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
else:
    print("NO")
Buggy code:
def solve(xs):                                                                    
  if xs.count(5) == 2 and xs.count(7) == 1:
    print('YES')
  else:                                                                         
    print('NO')

solve([ _ for _ in input().split() ])


Fixed code:
def solve(xs):
  if xs.count(5) == 2 and xs.count(7) == 1:
    print('YES')
  else:
    print('NO')

solve([ int(_) for _ in input().split() ])
Buggy code:
a = list(map(int, 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,b,c =input().split()
a = int(a)
b = int(b)
c = int(c)
if a == 5:
  if (b== 7 and c==5) or (b== 5 and c==7):
    print("YES")
elif a == 7:
  if b==5 and c == 5:
    print("YES")
else:
	print("NO")

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

Fixed code:
a,b,c=map(int,input().split())
print("YES" if a*b*c==175 else "NO")
Buggy code:
A = sorted(map(int, input().split()))
B=[5,5,7]

if A==B:
    print("YES")
else:
    print("No")
        

Fixed code:
A = sorted(map(int, input().split()))
B=[5,5,7]

if A==B:
    print("YES")
else:
    print("NO")
Buggy code:
a, b, c = sorted(map(len, input().split()))

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


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

if [a, b, c] == [5, 5, 7]:
  print("YES")
else:
  print("NO")
Buggy code:
a, b, c= map(int, input().split())
if a+b+c==17 && 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 = list(map(int, input().split()))
sort(s)
if s == [5, 7, 7]:
  print("YES")
else:
  print("NO")

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

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

if sorted(IN) == [5, 5, 7]:
    print("YES")
else:
    print("NO")
Buggy code:
n=input().split()
print("YES" if n.count("5")==2 and ("7")==1 else"NO")

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

cnt = 0
for i in A:
  if i != 7 or i !=5:
  	print('NO')
  else i == 7:
    cnt += 1

if cnt == 1:
  print('YES')
else:
  print('NO')

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

cnt = 0
for i in A:
  if i != 7 and i !=5:
  	cnt = 5
  elif i == 7:
    cnt += 1

if cnt == 1:
  print('YES')
else:
  print('NO')
Buggy code:
l = sorted(list(map(int, input().split())))
if l[0] == 5 and l[1] == 7 and l[2] == 7:
    print('YES') 
else:
    print('NO')

Fixed code:
na = lambda: list(map(int, input().split()))
l = sorted(na())
if l[0] == l[1] == 5 and l[2] == 7: print("YES")
else: print("NO")
Buggy code:
a=[map(int,input().split())]
print(['NO','YES'][a.count(5)==2 and a.count(7)==1])


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

Fixed code:
def hiku():
	lst=input()
	lst = lst.split()
	lst.sort()
	if lst[0]=='5' and lst[1]=='5' and lst[2]=='7':
		print("YES")
	else:
		print('NO')
hiku()
Buggy code:
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")

Fixed code:
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")
Buggy code:
a = [int(i) for i in input().split(" ")]
if [5,5,7] == sorted(a):
  print("YES")
else:
  print("No")

Fixed code:
a = [int(i) for i in input().split(" ")]
if [5,5,7] == sorted(a):
  print("YES")
else:
  print("NO")
Buggy code:
a,b,c = list(map(int,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:
Haiku = list(map(int, input().split()))
Haiku.sort()

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

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

if Haiku[0] == 5 and Haiku[1] == 5 and Haiku[2] == 7:
    print('YES')
else:
    print('NO')
Buggy code:
l=map(int,input().split())
for num in l:
  if num not in [5,7]:
    print("NO")
    exit()
if sum(l) == 17:
  print("YES")
else:
  print("NO")


Fixed code:
l=list(map(int,input().split()))
for num in l:
  if num not in [5,7]:
    print("NO")
    exit()
if sum(l) == 17:
  print("YES")
else:
  print("NO")
Buggy code:
A=list(map(int,input().split()))
A.sort
if A==[7,5,5]:
  print('YES')
else:
  print('NO')



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

Fixed code:
L = [int(i) for i in input().split()]

if (L.count(5) == 2 and L.count(7) == 1):
    print("YES")
else:
    print("NO")
Buggy code:
a,b,c=input().split()
ls=[a,b,c]
ls.sort
if ls[0]==ls[1]==5 and ls[2]==7:
  print("YES")
else:
  print("NO")

Fixed code:
a,b,c=input().split()
ls=[a,b,c]
ls.sort()
if ls[0]==ls[1]=="5" and ls[2]=="7":
  print("YES")
else:
  print("NO")
Buggy code:
n = list(int, input().split())
n.sort()
if n[0] == n[1] == 5 and n[2] == 7:
  print("YES")
else:
  print("NO")

Fixed code:
n = list(map(int, input().split()))
n.sort()
if n[0] == n[1] == 5 and n[2] == 7:
  print("YES")
else:
  print("NO")
Buggy code:
def main():
    if sorted(input().split()) == [5,5,7]: print('YES')
    else: print('NO')

if __name__ == '__main__':
    main()

Fixed code:
def main():
    if sorted(input().split()) == ['5','5','7']: print('YES')
    else: print('NO')

if __name__ == '__main__':
    main()
Buggy code:
words = list(input().split())
flag = False

if('5' in words):
 words.remove('5')
 if('7' in words):
  words.remove('7')
  if('5' in words):
   words.remove('5')
   flag =True 

if(flag==True):
 print("YES")

Fixed code:
words = list(input().split())
flag = False

if('5' in words):
 words.remove('5')
 if('7' in words):
  words.remove('7')
  if('5' in words):
   words.remove('5')
   flag =True 

if(flag==True):
 print("YES")
else:
 print("NO")
Buggy code:
s = list(map(int, input().split()))
if sorted(s) == [5, 5, 7]:
    print("YES")
else:
    ("NO")

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

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

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


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

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

Fixed code:
A=input().split()
if A==["5","5","7"] or A==["5","7","5"] or A==["7","5","5"]:
  print("YES")
else:
  print("NO")
Buggy code:
def iroha():
    A, B, C = map(int, input().split())
    S = A + B + C
    if S == 17:
        print("YES")
    else:
        print("NO")


Fixed code:
def iroha():
    A, B, C = map(int, input().split())
    S = A + B + C
    if S == 17:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    iroha()
Buggy code:
da = list(map(int,input(),split()))
a = 0
k = 0
for i in range(3):
  if  da[i] == 5:
    a += 1
  elif da[i] == 7:
    k += 1

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

Fixed code:
da = list(map(int,input().split()))
a = 0
k = 0
for i in range(3):
  if  da[i] == 5:
    a += 1
  elif da[i] == 7:
    k += 1
 
if a == 2 and k == 1:
  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:
I = list(map(int, input().split()))
I.sort()
if I == [5, 5, 7]:
    print("YES")
else:
    print("NO")
Buggy code:
s = input().split()

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


Fixed code:
s = input().split()

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

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

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

Fixed code:

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

if numArray.count(5) == 2 and numArray.count(7) == 1: print("YES")
else: print("NO")
Buggy code:
tupni = [int(idx) for idx in input.split()]
if tupni.sort() == [5,5,7]:
  print("YES")
else:
  print("NO")

Fixed code:
tupni = [int(idx) for idx in input().split(" ")]
tupni.sort()
if tupni == [5,5,7]:
  print("YES")
else:
  print("NO")
Buggy code:
data = [int(i) for i in input().split(" ")]
print(data)
total = 0
for i in data:
    if i==7 or i==5:
        total += i
if total == 17:
  	print("YES")
else:
  	print("NO")

Fixed code:
data = [int(i) for i in input().split(" ")]
total = 0
for i in data:
    if i==7 or i==5:
        total += i
if total == 17:
  	print("YES")
else:
  	print("NO")
Buggy code:
def check_a(numbers):
    if numbers.count(5) == 2 and numbers.count(7) == 1:
        return 'YES'
    else:
        return 'NO'


def main():
    numbers = list(map(int, input()))
    print(check_a(numbers=numbers))


if __name__ == '__main__':
    main()


Fixed code:
def check_a(numbers):
    if numbers.count(5) == 2 and numbers.count(7) == 1:
        return 'YES'
    else:
        return 'NO'


def main():
    numbers = list(map(int, input().split()))
    print(check_a(numbers=numbers))


if __name__ == '__main__':
    main()
Buggy code:
def main():
    A, B, C = map(int, input().split())
    if (A == 5 and B == 7 and C == 5) or (A == 7 and B == 5 and C == 5) or (A == 5 and B == 5 and C ==7):
        print('YES')
    else:
        print('No')
main()

Fixed code:
def main():
    A, B, C = map(int, input().split())
    if (A == 5 and B == 7 and C == 5) or (A == 7 and B == 5 and C == 5) or (A == 5 and B == 5 and C ==7):
        print('YES')
    else:
        print('NO')
main()
Buggy code:
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')

Fixed code:
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')
Buggy code:
a, b, c = map(int, input().split())

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

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

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

else:
    print("NO")


Fixed code:
a,b,c=input().split()
d=[a,b,c]

if d.count("5")==2 and d.count("7")==1:
    print("YES")

else:
    print("NO")
Buggy code:
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())

Fixed code:
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))
Buggy code:
a = list(map(int,input().split()))
b = [x for x in a if x !=" "]
c = sorted(b)
d =[5,5,7]
print("YES" if c == d else "NO")
print(b)
print(c)

Fixed code:
a = list(map(int,input().split()))
b = [x for x in a if x !=" "]
c = sorted(b)
d =[5,5,7]
print("YES" if c == d else "NO")
Buggy code:
array = [int(i) for i in input().split()]

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

Fixed code:
array = [int(i) for i in input().split()]

if sorted(array) == [5,5,7]:
  print("YES")
else:
  print("NO")
Buggy code:
l = list(map(int,input().split()))
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:
numbers_list = input().split()
count5 = numbers_list.count('5')
count7 = numbers_list.count('7')
if count5 == 2 and count7 == 1:
  print('YES')
else:
  print('NO')
print(numbers_list)


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

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