qyliang/CodeNanoFix huggingface dataset:
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:
num = list(map(input().split("")))

sums=0
for i in num:
	sums+=i
  
if sums ==17:
	print("YES")
else:
	print("NO")

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

sums=0
for i in num:
	sums+=i
  
if sums ==17:
	print("YES")
else:
	print("NO")
Buggy code:
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')

Fixed code:
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')
Buggy code:
def test():
  x=input()
  x=x.split()
  if x ==['5','5','7']:
    print("YES")
  if x ==['5','7','5']:
    print("YES")
  if x ==['7','5','5']:
    print("YES")
  else:
    print("NO")
test()

Fixed code:
def test():
  x=input()
  x=x.split()
  if x == ['5','5','7']:
    print("YES")
  elif x == ['5','7','5']:
    print("YES")
  elif x == ['7','5','5']:
    print("YES")
  else:
    print("NO")
    
test()
Buggy code:
def is_haiku(s):
    nums = s.split()
    counts = {x: nums.count(x) for x in nums}
    try:
        if counts['5'] == 2 and counts['7'] == 1:
            print("YES")
    finally:
        print("NO")

if __name__ == "__main__":
    is_haiku(input())

Fixed code:
def is_haiku(s):
    nums = s.split()
    counts = {x: nums.count(x) for x in nums}
    try:
        if counts['5'] == 2 and counts['7'] == 1:
            print("YES")
        else:
            print("NO")
    except:
        print("NO")

if __name__ == "__main__":
    is_haiku(input())
Buggy code:
N=list(map(int.input(),split()))
if sorted(N)==[5,7,7]:
    print("YES")
else:
    print("NO")

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

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 B==5 and C==5 and A==7:print('YES')
else: print('NO')
Buggy code:
n = input().split()
print(["NO","YES"][n.count("7") ==2 and n.count("5") ==1])

Fixed code:
n = input().split()
print(["NO","YES"][n.count("7")==1 and n.count("5")==2])
Buggy code:
a = input().split()
five = a.count(5)
seven = a.count(7)

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

Fixed code:
a = input().split()
five = a.count('5')
seven = a.count('7')

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

for i in range(len(ABClist)):
  if ABClist[i] == 5:
    five += 1
  if ABClist[i] == 7:
    seven += 1
    
if five == 2 and seven == 1:
  print('YES')
else:
  print('No')

Fixed code:
ABClist =  list(map(int, input().split()))
five = 0
seven = 0

for i in range(len(ABClist)):
  if ABClist[i] == 5:
    five += 1
  if ABClist[i] == 7:
    seven += 1
    
if five == 2 and seven == 1:
  print('YES')
else:
  print('NO')
Buggy code:
lis = list(map(int,input().split()))
if sum(lis) == 22 and 5 in lis and 7 in lis:
  print("YES")
else:
  print("NO")

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

if sum(lis) == 17 and 5 in lis and 7 in lis:
  print("YES")
else:
  print("NO")
Buggy code:
A, B, C = map(int, input())

num5 = 0
num7 = 0
ans = 'NO'

for num in [A, B, C]:
  if num == 5:
    num5+=1
  elif num == 7:
    num7+=1
  else:
    break
if num5 ==2 and num7 == 1:
  ans = 'YES'
print(ans)

Fixed code:
A, B, C = map(int, input().split())
 
num5 = 0
num7 = 0
ans = 'NO'
 
for num in [A, B, C]:
  if num == 5:
    num5+=1
  elif num == 7:
    num7+=1
  else:
    break
if num5 ==2 and num7 == 1:
  ans = 'YES'
print(ans)
Buggy code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    X = list(map(int, readline().split()))

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

    return


if __name__ == '__main__':
    main()


Fixed code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    X = list(map(int, readline().split()))

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

    return


if __name__ == '__main__':
    main()
Buggy code:
s = input()
if s.count('5') == 2 and s.count('1') == 1:
  print('YES')
else:
  print('NO')

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

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

Fixed code:
if sorted(input().split()) == ["5", "5", "7"]:
  print("YES")
else:
  print("NO")
Buggy code:
lis = [int(i) for i in input().split()]
print("YES" if lis.count(5) == 2 and lis.count(7) == 1 else "No")

Fixed code:
lis = [int(i) for i in input().split()]
print("YES" if lis.count(5) == 2 and lis.count(7) == 1 else "NO")
Buggy code:
a, b, c = map(int, input().split())
iroha=[a,b,c]

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

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

Fixed code:

s = input().split()
if s.count('7') == 1 and s.count('5') == 2:
  print('YES')
else:
  print('NO')
Buggy code:
# coding:utf-8

x, y, z = list(map(int, input().split()))
if x = 5 and y = 7 and z = 5:
  print("YES")
elif x = 7 and y = 5 and z = 5:
  print("YES")
elif x = 5 and y = 5 and z = 7:
  print("YES")
else:
  print("NO")

Fixed code:
# coding:utf-8
 
x, y, z = list(map(int, input().split()))
if x == 5 and y == 7 and z == 5:
  print("YES")
elif x == 7 and y == 5 and z == 5:
  print("YES")
elif x == 5 and y == 5 and z == 7:
  print("YES")
else:
  print("NO")
Buggy code:
a=list(map(int,input().split()))

a.sort()

if a[0]==5 and a[1]==7 and a[2]==5:
  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:
a, b, c = map(int, input().split())
if a + b + c == 19:
  print("YES")
else:
  print("NO")

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

if a+b+c == 17:
    print("YES")
else:
    print("NO")
Buggy code:
A,B,C= input().split()
Sum = A + B + C
if Sum == 17:
    print('YES')
else:
    print('NO')

Fixed code:
A,B,C= input().split()
Sum = int(A) + int(B) + int(C)
if Sum == 17:
    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 == 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:

"""
https://atcoder.jp/contests/abc042/tasks/abc042_a
"""

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

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


Fixed code:

"""
https://atcoder.jp/contests/abc042/tasks/abc042_a
"""

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

if a == [5,5,7]:
    print("YES")
else:
    print("NO")
Buggy code:
numlist = list(map(int,input().split()))
if max(numlist) == 7 and min(numlist) == 5 and sum(sumlist) == 17:
  print('YES')
else:
  print('NO')

Fixed code:
numlist = list(map(int,input().split()))
if max(numlist) == 7 and min(numlist) == 5 and sum(numlist) == 17:
  print('YES')
else:
  print('NO')
Buggy code:
A, B, C = map(int, input().split())

if (A ==7) and (B==C==5):
    print("Yes")
elif (A==C==5) and (B==7):
    print("Yes")
elif (A==B==5) and (C==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 B == 7 and C == 5:
	print('YES')
elif A == 7 and B == 5 and C == 5:
	print('YES')
else:
	print('NO')
Buggy code:
s=[int(i) for i in input.split()]
if len(s)==3 and s.count("5")==2 and s.count("7")==1:
    print("YES")
else:
    print("NO")


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


Fixed code:

if __name__ == '__main__':
    ABC=list(map(int,input().split()))
    if ABC.count(5)==2 and ABC.count(7)==1:
        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)
elif a==5 and b==5 and c==7&:
  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==7 and c==5:
  print('YES')
elif a==5 and b==5 and c==7:
  print('YES')
elif a==7 and b==5 and c==5:
  print('YES')
else:
  print('NO')
Buggy code:
haiku = list(int(i) for i in input().split())
seven = 0
five = 0
for i in range(3):
    if int(haiku[i]) == 7:
        seven += 1
    elif int(haiku[i]) == 5:
        five += 1
if seven == 2 and five == 1:
    print("YES")
else:
    print("NO")

Fixed code:
haiku = list(int(i) for i in input().split())
seven = 0
five = 0
for i in range(3):
    if int(haiku[i]) == 7:
        seven += 1
    elif int(haiku[i]) == 5:
        five += 1
if seven == 1 and five == 2:
    print("YES")
else:
    print("NO")
Buggy code:
X = list(map(int, input().split())).sort()

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

Fixed code:
X = sorted(list(map(int, input().split())))
print("YES" if X == [5, 5, 7] else "NO")
Buggy code:
# -*- coding: utf-8 -*-

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





Fixed code:
# -*- coding: utf-8 -*-

if __name__ == "__main__":
    # str_list = [map(int, input().split())]
    # if str_list.count(5) == 2 and str_list.count(7) == 1:
    #     print('YES')
    # else:
    #     print('NO')
    str_list = list(map(int, input().split()))
    if sum(str_list) == 17:
        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 == 5:
  if b == 5 and c == 7:
    print('YES')
  elif b == 7 and c == 5:
    print('YES')
  else:
    print('NO')
else:
  if b == 5 and c == 5:
    print('YES')
  else:
    print('NO')
Buggy code:
def ispossible(list1):
  if list1.count("5") == 2 and list1.count("7") == 1:
    return "YES"
  else:
    return "NO"

list1 = input().split()
print(ispposible(list1))

Fixed code:
def ispossible(list1):
  if list1.count("5") == 2 and list1.count("7") == 1:
    return "YES"
  else:
    return "NO"

list1 = input().split()
print(ispossible(list1))
Buggy code:
abc=list(map(str,input().split()))
if abc.count("7") ==2 and abc.count("5")==1:
    print("YES")
else:
    print("NO")

Fixed code:
abc=list(map(str,input().split()))
if abc.count("7") ==1 and abc.count("5")==2:
    print("YES")
else:
    print("NO")
Buggy code:
num = input().split()
if num.count('5')==1 and num.count('7')==2:
  print('YES')
else: print('NO')

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

Fixed code:
L = list(map(int, input().split()))
L.sort()
for i in range(2):
  if not L[i] == 5:
    print("NO")
    exit()
if not L[2] == 7:
  print("NO")
  exit()
print("YES")
Buggy code:
# coding: utf-8
# Your code here!

input_list = input().split()
sort_list = (int(input_list[0]),int(input_list[1]),int(input_list[2]))

tuple_a = (5,5,7)
tuple_b = (5,7,5)
tuple_c = (7,7,5)

if sort_list==tuple_a or sort_list==tuple_b or sort_list==tuple_c:
    print("YES")
else:
    print("NO")





Fixed code:
# coding: utf-8
# Your code here!

input_list = input().split()
sort_list = (int(input_list[0]),int(input_list[1]),int(input_list[2]))

tuple_a = (5,5,7)
tuple_b = (5,7,5)
tuple_c = (7,5,5)

if sort_list==tuple_a or sort_list==tuple_b or sort_list==tuple_c:
    print("YES")
else:
    print("NO")
Buggy code:
# -*- coding: utf-8 -*-
line = map(int, input().split())

ans = "YES" if line.count(5) == 2 and line.count(7) == 1 else "NO"

print(ans)

Fixed code:
# -*- coding: utf-8 -*-
line = map(int, input().split())
#ans = "YES" if line.count(5) == 2 and line.count(7) == 1 else "NO"

if sorted(line) == [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 = sorted(list(map(int, input().split())))
if a == b == 5 and c == 7:
  print('YES')
else:
  print('NO')
Buggy code:
print("YNEOS"[eval(input().replace(' ','+'))==17::2])

Fixed code:
print("YNEOS"[eval(input().replace(' ','+'))!=17::2])
Buggy code:
a,b,c=map(int,input().split());print("YNEOS"[a+b+c-17or(a^b^c)-7::2])

Fixed code:
a,b,c=map(int,input().split());print("YNEOS"[a+b+c!=17or a^b^c!=7::2])
Buggy code:
x,y,z = map(int,input().split())
if x == 5 and y == 7 and z == 5:
  print('YES')
if x == 5 and y == 5 and z == 7:
  print('YES')
if x == 7 and y == 5 and z == 5:
  print('YES')
else:
  print('NO')

Fixed code:
x,y,z = map(int,input().split())
if x == 5 and y == 7 and z == 5:
  print('YES')
elif x == 5 and y == 5 and z == 7:
  print('YES')
elif x == 7 and y == 5 and z == 5:
  print('YES')
else:
  print('NO')
Buggy code:
array = input().split()
if (array.count(5) == 2 and array.count(7) == 1):
  print "YES"
else
  print "NO"

Fixed code:
array = input().split()
if (array.count('5') == 2 and array.count('7')  == 1):
  print("YES")
else:
  print("NO")
Buggy code:
a = input().split()
countF = 0
countS = 0
for i in range(3):
    countF += a[i] == 5
    countS += a[i] == 7
if countF == 2 and countS == 1:
    print('YES')
else:
    print('NO')

Fixed code:
a = [int(x) for x in input().split()]
countF = 0
countS = 0
for i in range(3):
    countF += a[i] == 5
    countS += a[i] == 7
if countF == 2 and countS == 1:
    print('YES')
else:
    print('NO')
Buggy code:
a, b, c = map(int, input().split())
if(a==7):
    if(b==5 & c==5):
        print('YES')
    else:
        print('NO')
elif(b==7):
    if(a==5 & c==5):
        print('YES')
    else:
        print('NO')
elif(c==7):
    if(b==5 & a==5):
        print('YES')
    else:
        print('NO')
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(b==5 and a==5):
        print('YES')
    else:
        print('NO')
else:
    print('NO')
Buggy code:
a = input().split()
if a.count(5)==2 and a.count(7)==1:
  print('YES')
else:
  print('NO')

Fixed code:
a = input().split()
if a.count('5')==2 and a.count('7')==1:
  print('YES')
else:
  print('NO')
Buggy code:
num = input().split('')
if num == ['5', '7', '5'] or num == ['7', '5', '5'] or num == ['5', '5', '7']:
  print('YES')
else:
  print('NO')




Fixed code:
num = input().split(' ')
if num == ['5','7','5'] or num == ['7','5','5'] or num == ['5','5','7']:
    print('YES')
else:
    print('NO')
Buggy code:
a, b, c = map(int, input().split())
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:
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 amd c==7:
  print("YES")
else:
  print('NO')

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

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

if phrases == [7,5,5]:
  print('YES')
else:
  print('NO')

Fixed code:
phrases = input().split()
phrases.sort(reverse=True)

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

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

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

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

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

if b == a.sort():
 print("YES")
else:
 print("NO")

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

Fixed code:
a = list(map(int,input().split()))
b = a.count(5)
c = a.count(7)
if b == 2 and c ==1:
            print('YES')
else:
            print('NO')
Buggy code:
n = list(map(int, input().split()))
count_5 = 2
count_5 = 1
for i in range(len(n)):
    if n[i] == 5:
        count_5 -= 1
    elif n[i] == 7:
        count_7 -= 1
if count_5==0 and count_7==0:
    print('YES')
else:
    print('NO')


Fixed code:
n = list(map(int, input().split()))
count_5 = 2
count_7 = 1
for i in range(len(n)):
    if n[i] == 5:
        count_5 -= 1
    elif n[i] == 7:
        count_7 -= 1
if count_5==0 and count_7==0:
    print('YES')
else:
    print('NO')
Buggy code:
A=list(map(input().split()))
ans=sorted(A)
if ans==[5,5,7]:
  print('YES')
else:
  print('NO')

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


Fixed code:
li=list(map(int,input().split()))
print("YES" if sorted(li)==[5,5,7] else "NO")
Buggy code:
abc = list(map(int, input().split()))
if abc.count(5) == 2 and abc.count(7) == 1: print("YES")
else: print("N0")

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:
a = list(map(int, input().split()))
c7 = 0
c5 = 0
for x in a:
  if x == 7:
    c7 += 1
  if x == 5:
    c5 += 1
if c7 == 1 and c5 == 2:
  print("YES")
else:
  print("N0")

Fixed code:
a = list(map(int, input().split()))
c7 = 0
c5 = 0
for x in a:
  if x == 7:
    c7 += 1
  if x == 5:
    c5 += 1
if c7 == 1 and c5 == 2:
  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 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:
# 042a

def atc_042a(input_value: str) -> str:
    ABC = input_value.split(" ")
    if ABC.count("5") == 2 and ABC.count("7") == 1:
        return "YES"
    return "NO"

Input_value_1 = input()
print(atc_042a(input_value_1))


Fixed code:
# 042a

def atc_042a(input_value: str) -> str:
    ABC = input_value.split(" ")
    if ABC.count("5") == 2 and ABC.count("7") == 1:
        return "YES"
    return "NO"

input_value_1 = input()
print(atc_042a(input_value_1))
Buggy code:
input_line = input().split()
#print(input_line)
count5 = 0
count7 = 0
#print(input_line[0])
#print(len(input_line))
for i in range(len(input_line)):
#  print(input_line[i])
  if int(input_line[i]) == 5:
#    print(input_line[i])
    count5 += 1
#    print(count5)
  elif int(input_line[i]) == 7:
    count7 += 1
#    print(count7)
if count5 == 2 and count7 == 1:
  print("YES")
#  print(count5,count7)
else:
#  print(count5,count7)

Fixed code:
input_line = input().split()
#print(input_line)
count5 = 0
count7 = 0
#print(input_line[0])
#print(len(input_line))
for i in range(len(input_line)):
#  print(input_line[i])
  if int(input_line[i]) == 5:
#    print(input_line[i])
    count5 += 1
#    print(count5)
  elif int(input_line[i]) == 7:
    count7 += 1
#    print(count7)
if count5 == 2 and count7 == 1:
  print("YES")
#  print(count5,count7)
else:
#  print(count5,count7)
  print("NO")
Buggy code:
A = int(input())
B = int(input())
C = int(input())

arr = [A, B, C]
fives = 0
sevens = 0

for num in arr:
    if num == 5:
        fives += 1
    if num == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")

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

arr = [A, B, C]
fives = 0
sevens = 0

for num in arr:
    if num == 5:
        fives += 1
    if num == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")
Buggy code:
a=input()
b=input()
c=input()
w=[a,b,c]
e=w.count('5')
if '5' and '7' not in w:
    print ('NO')
elif e==2:
    print ('YES')
else:
    print ('NO')

Fixed code:
a,b,c=input().split()
w=[a,b,c]
e=w.count('5')
if '5' and '7' not in w:
    print ('NO')
elif e==2:
    print ('YES')
else:
    print ('NO')
Buggy code:
from collections import Counter
abc = input().rstrip()
c = COunter(abc)
if c['5'] == 2 and c['7'] == 1:
  print('YES')
else:
  print('NO')
  

Fixed code:
from collections import Counter
abc = input().rstrip()
c = Counter(abc)
if c['5'] == 2 and c['7'] == 1:
  print('YES')
else:
  print('NO')
Buggy code:
a = list(map(int,input().split()))
b = 0
c = 0
for i in a:
  if i == 5:
    b = b + 1
  if i == 7:
    c = c+1
if b ==2 and c==1:
  print(YES)
else:
  print(NO)

Fixed code:
a = list(map(int,input().split()))
b = 0
c = 0
for i in a:
  if i == 7:
    b += 1
  elif i == 5:
    c += 1
 
if b == 1 and c == 2:
  print("YES")
else:
  print("NO")