qyliang/CodeNanoFix huggingface dataset:
Buggy code:
numbers=sorted(list(map(int,input().split())))
if numbers == [5,7,7]:
  print("YES")
else:
  print("NO")

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

Fixed code:
a=[int(x) for x in input().split()]
a.sort()
if a == [5,5,7]:print("YES")
else:print("NO")
Buggy code:
a = list(map(int, input().split()))
print("YES" if a[0]== a[2] == 5 and a[1] == 7 else "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:
n = input().split()
result = 'NO'
print(n)
if n.count('5') == 2 and n.count('7') == 1:
  result = 'YES'
print("{} ".format(result))

Fixed code:
n = input().split()
result = 'NO'
if n.count('5') == 2 and n.count('7') == 1:
  result = 'YES'
print("{}".format(result))
Buggy code:
x = input().stlip()
fn = 0
sn = 0

for i in range(len(x)):
  if int(x[i]) == 5:
    fn += 1
  elif int(x[i]) == 7:
    sn += 1

if fn = 2:
  if sn = 5:
    print("YES")
  else:
    print("NO")
else:
  print("NO")

Fixed code:
x = input().split()
fn = 0
sn = 0
 
for i in range(len(x)):
  if int(x[i]) == 5:
    fn += 1
  elif int(x[i]) == 7:
    sn += 1
 
if fn == 2:
  if sn == 1:
    print("YES")
  else:
    print("NO")
else:
  print("NO")
Buggy code:
haiku=list(map(int, input().split())) #a1 a2 a3
haiku.sort()

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

Fixed code:
haiku=list(map(int, input().split())) #a1 a2 a3
haiku.sort()


print('YES' if haiku[0]==5 and haiku[1]==5 and haiku[2]==7 else 'NO')
Buggy code:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
ABC= A_B_C.soreted()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')

Fixed code:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
A_B_C.sort()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')
Buggy code:
s = list(map(int, input().split())
if s.count(5)==2 and s.count(7)==1:
	print("YES")
else:
    print("NO")

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


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

    

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

list_irioha = [a, b, c]
count = 0
if a + b + c == 17:
    for i in list_iroha:
        if i == 5:
            count += 1
            if count == 2:
                print("YES")
                exit()
print("NO")
exit()


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

list_iroha = [a, b, c]
count = 0
if a + b + c == 17:
    for i in list_iroha:
        if i == 5:
            count += 1
            if count == 2:
                print("YES")
                exit()
print("NO")
exit()
Buggy code:
A = list(map(int, input().split()))
A =sorted(A)
if A[0]=5 and A[1]=5 and A[2]=7:
  print("YES")
else:
  print("NO")

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

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

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


Fixed code:
A,B,C = map(int,input().split())
x = [A,B,C]
x.sort()
if x[0]==5 and x[1]==5 and x[2]==7:
    print("YES")
else:
    print("NO")
Buggy code:
abc = [int (x) in input().split()]
abc.sort()
print('YES' if abc == [5, 5, 7] else 'NO')


Fixed code:
abc = [int (x) for x in input().split()]
abc.sort()
print('YES' if abc == [5, 5, 7] else 'NO')
Buggy code:
a,b,c = sorted(map(int, input().split()))
if (a+b+c==17)&(a==b)&(c==7):
  return("YES")
else:
  return("NO")

Fixed code:
a,b,c = sorted(map(int, input().split()))
if (a+b+c==17)&(a==b)&(c==7):
  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('N0')

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

Fixed code:
print("YES" if sorted(list(input().split()))==["5","5","7"] else "NO")
Buggy code:
# coding: utf-8
# Here your code !
ipt = input().split(" ")
j,k =0,0
for i in [ int(i) for i in ipt]:
    if i == 5:
        k += 1
    elif i==7:
        j += 1
    print(ipt,i,k,j)

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

Fixed code:
# coding: utf-8
# Here your code !
ipt = input().split(" ")
j,k =0,0
for i in [ int(i) for i in ipt]:
    if i == 5:
        k += 1
    elif i==7:
        j += 1
#    print(ipt,i,k,j)

if j == 1 and k == 2:
    print("YES")
else:
    print("NO")
Buggy code:
def solve(a,b,c):
    li = [a,b,c]
    cf = 0
    cs = 0
    for i in li:
        if i == 5:
            cf +=1
        if i==7:
            cs +=1
    if cf == 2 and cs ==1:
        return YES
    else:
        return NO
            
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b, str_c] = line.split(' ')
    return (int(str_a), int(str_b), int(str_c))

def main():
    a, b, c = readQuestion()
    answer = solve(a, b, c)
    print(answer)
    
if __name__ == '__main__':
    main()    

Fixed code:
import sys

def solve(a,b,c):
    li = [a,b,c]
    cf = 0
    cs = 0
    for i in li:
        if int(i) == 5:
            cf +=1
        if int(i) == 7:
            cs +=1
    if cf == 2 and cs ==1:
        return 'YES'
    else:
        return 'NO'
            
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b, str_c] = line.split(' ')
    return (int(str_a), int(str_b), int(str_c))

def main():
    a, b, c = readQuestion()
    answer = solve(a, b, c)
    print(answer)
    
if __name__ == '__main__':
    main()
Buggy code:
import sys
a,b,c=map(int,input().split())

l=[a,b,c,a,b]
for x in range(3):
    if l[x]==l[x+1] and l[x]==5 and l[x]==7:
        print('YES')
        sys.exit()
print('NO')


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

l=[a,b,c,a,b]
for x in range(3):
    if l[x]==l[x+1] and l[x]==5 and l[x+2]==7:
        print('YES')
        sys.exit()
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')
if 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:
lis = sorted(input().split())
print(lis)
if lis == ['5', '5', '7']:
    print('YES')
else:
    print('NO')

Fixed code:
lis = sorted(input().split())
if lis == ['5', '5', '7']:
    print('YES')
else:
    print('NO')
Buggy code:
L=list(map(int,input().split()))
table=[5,5,7]
L=soretd(L)
if table == L:
  print("YES")
else:
  print("NO")


Fixed code:
L=list(map(int,input().split()))
table=[5,5,7]
L=sorted(L)
if table == L:
  print("YES")
else:
  print("NO")
Buggy code:
"""
author : halo2halo
date : 4, Feb, 2020
"""

import sys

# import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = readline().decode('utf8').rstrip().split()

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


Fixed code:
"""
author : halo2halo
date : 4, Feb, 2020
"""

import sys

# import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = readline().decode('utf8').rstrip().split()

print('YES' if S.count('5') == 2 and S.count('7') == 1 else 'NO')
Buggy code:
a, b, c=int(input(),split())
if a==7 and b==5 and c==5:
  print("YES")
elif a==5 and b==7 and c==5:
  print("YES")
elif a==5 and b==5 and c==7:
  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 a==5 and b==7 and c==5:
  print("YES")
elif a==5 and b==5 and c==7:
  print("YES")
else:
  print("NO")
Buggy code:
s=[int(i) for i in input().split()]
five_count=0
seven_count=0
for i in s:
    if(s==5):
        five_count+=1
    elif(s==7):
        seven_count+=1
if(five_count==2 and seven_count==1):
    print('YES')
else:
    print('NO')

Fixed code:
s=[int(i) for i in input().split()]
five_count=0
seven_count=0
for i in s:
    if(i==5):
        five_count+=1
    elif(i==7):
        seven_count+=1
if(five_count==2 and seven_count==1):
    print('YES')
else:
    print('NO')
Buggy code:
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")

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

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

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



Fixed code:
li = list(map(int, input().split()))
li.sort()
if li == [5, 5, 7]:
    print("YES")
else:
    print("NO")
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 five == 2 & seven == 1:
    print('YES')
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 five == 2 and seven == 1:
    print('YES')
else:
    print('NO')
Buggy code:



def main():
    input_str = input()

    a,b,c = input_str.split(' ')
    a = int(a)
    b = int(b)
    c = int(c)
    flag = False

    for i in [a,b,c,'fin']:
        if i == 'fin':
            if a+b+c== 15:
                flag = True
        elif not i in [5,7]:
            break

    if flag:
        print('YES')
    else:
        print('NO')


if __name__=='__main__':
    main()


Fixed code:



def main():
    input_str = input()

    a,b,c = input_str.split(' ')
    a = int(a)
    b = int(b)
    c = int(c)
    flag = False

    for i in [a,b,c,'fin']:
        if i == 'fin':
            if a+b+c== 17:
                flag = True
        elif not i in [5,7]:
            break

    if flag:
        print('YES')
    else:
        print('NO')


if __name__=='__main__':
    main()
Buggy code:
s = input()
if s = "7 5 5" or "5 7 5" or "5 5 7":
  print("YES")
else:
  print("NO")


Fixed code:
s = input()
if s == "7 5 5" or s == "5 7 5" or s == "5 5 7":
  print("YES")
else:
  print("NO")
Buggy code:
inpstr = input()

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

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

Fixed code:
inpstr = input()

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

c5 = 0
c7 = 0
for i in inp:
  if i==5:
    c5 += 1
  elif i==7:
    c7 += 1
if c5 == 2 and c7 == 1:
  print('YES')
else:
  print('NO')
Buggy code:
ar = input().split(" ")
f = 0
s = 0
for a in ar:
  if a == "5":
    f += 1
  elif a == "7":
    s += 1
if f == 5 and s == 1:
  print("YES")
else:
  print("NO")

Fixed code:
ar = input().split(" ")
f = 0
s = 0
for a in ar:
  if a == "5":
    f += 1
  elif a == "7":
    s += 1
if f == 2 and s == 1:
  print("YES")
else:
  print("NO")
Buggy code:
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')

Fixed code:
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')
Buggy code:
a = []
a = input().split(' ')

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

Fixed code:
a = []
a = input().split(' ')

if '5' in a:
    a.remove('5')
    if '7' in a:
        a.remove('7')
        if '5' in a:
                print('YES')
        else:
            print('NO')
    else:
        print('NO')
else:
    print('NO')
Buggy code:
a,b,c = map(int,input().split())
print("YES" if a*b*c == 35 else "NO")
 

Fixed code:
a,b,c = map(int,input().split())
print("YES" if a*b*c ==175 else "NO")
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:
    print('YES')
else:
    print('NO')

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

ans1 = 0
ans2 = 0

for i in range(len(A)):
    if A[i] == 5:
        ans1 += 1
    if A[i] == 7:
        ans2 += 1

if ans1 == 2 and ans2 == 1:
    print('YES')
else:
    print("NO")

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

ans1 = 0
ans2 = 0

for i in range(len(A)):
    if A[i] == 5:
        ans1 += 1
    if A[i] == 7:
        ans2 += 1

if ans1 == 2 and ans2 == 1:
    print('YES')
else:
    print('NO')
Buggy code:
# coding: utf-8

data = list(map(int,"5 7 5".split()))
if 2 == data.count(5) and 1 == data.count(7):
    print("YES")
else:
    print("NO")

Fixed code:
# coding: utf-8

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

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

Fixed code:
nums = list(map(int,input().split()))
nums.sort()
if nums[0] == 5 and nums[1] == 5 and nums[2] == 7:
            print("YES")
else:
            print("NO")
Buggy code:
l = [7,5,5]
a = list(map(int, input().split()))
a.sort()
if a == l:
    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 = (int(i) for i in input().split())  
    d=(a+b+c)/17
    e=(max(a,b)-2+max(a,c)+max(b,c))/17
     
    if(d==1 and e==1): print("YES")
    else: print("NO")
    

Fixed code:
a, b, c = (int(i) for i in input().split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/17
     
if(d==1 and e==1): print("YES")
else: print("NO")
Buggy code:
if sorted(list(map(int,input().split()))) == [5,7,7]:
  print('YES')
else:
  print('NO')

Fixed code:
if sorted(list(map(int,input().split()))) == [5,5,7]:
    print('YES')
else:
    print('NO')
Buggy code:
n = list(map(int,input().split()))
if 5 in n :
    n.remove(5)
    elif 5 in n :
        elif 7 in n :
                print("YES")
else :
    print("NO")

Fixed code:
n = list(map(int,input().split()))
if 5 in n:
    n.remove(5)
    if 5 in n and 7 in n :
        print("YES")
    else:
        print("NO")
else:
    print("NO")
Buggy code:
l = [int(x) for x in input().split()]
l = sorted(l)
if l.count(5)==2 and l.count(7)==1:
  print("YES")
else:
  print("NO"

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

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

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

print("YES" if abc.count("5") == 2 and abc.count("7") == 1 else "NO")
Buggy code:
abc=list(map(int,input().split()))
abc.sort()
if a[0]==5 and a[1]==5 and a[2]==7:
    print("YES")
    exit()
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")
    exit()
print("NO")
Buggy code:
nums = list(map(int, input().split("")))

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

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

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

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

l = sorted(l)

if l == [5,5,7]:
    print("YES")
else :
    print("NO")
Buggy code:
a,b,c=map(int,input().split())
list1=[a,b,c]
list2=sorted(list1)
if list2[0]==list2[1]==5 and list2[2]==7:
    print("YES")
else:
    print(NO")

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

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

seven = 0
five = 0

for i in range(data):
	if int(i) == 7:
		seven += 1
	elif int(i) == 5:
		five +=1

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

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

seven = 0
five = 0

for i in range(len(data)):
	if int(data[i]) == 7:
		seven += 1
	elif int(data[i]) == 5:
		five +=1

if seven == 1 and five == 2:
	print('YES')
else:
	print('NO')
Buggy code:
import sys

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

if 7 in [a,b,c]:
  if filter(lambda x:x ==5,[a,b,c]) is 2:
  	print("YES")
    sys.exit()

print("NO")

Fixed code:
import sys
 
a,b,c = map(int,input().split())
 
if 7 in [a,b,c]:
	if len(list(filter(lambda x:x ==5,[a,b,c]))) is 2:
		print("YES")
		sys.exit()
 
print("NO")
Buggy code:
# coding: utf-8

import numpy as np

if __name__ == "__main__":
    
    input_str = input("input >>> ")
    
    length_str = np.array([int(f) for f in input_str.split(" ")])
    
    if np.sum(length_str == 5) and np.sum(length_str == 7):
        print("YES")
    else:
        print("NO")

Fixed code:
# coding: utf-8

import numpy as np

if __name__ == "__main__":
    
    input_str = input("")
    
    length_str = np.array([int(f) for f in input_str.split(" ")])
    
    if np.sum(length_str == 5) == 2 and np.sum(length_str == 7) == 1:
        print("YES")
    else:
        print("NO")
Buggy code:
a,b,c = map(int, input().split())
l = [a,b,c]



count = 0
for i in l:
	if i == 5:
		count += 1
		
		if count == 2:
			break

if any([i == 7 for i in l]):
	print("YES")
else:
	print("NO")

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



count = 0
for i in l:
	if i == 5:
		count += 1
		
		if count == 2:
			break

if any([i == 7 for i in l]) and count == 2:
	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(int (5)) == 2 and n.count(int (7)) == 1:
  print("YES")
else:
  print("NO")
Buggy code:

def main():
  inputs = input().split()
  if len(inputs)==3:
    if inputs.count("5")==2 and inputs.count("7")==1:
      print("YES")
      return
  
  print("No")
  return


if __name__ == "__main__":
  main()

  

Fixed code:

def main():
  inputs = input().split()
  if len(inputs)==3:
    if inputs.count("5")==2 and inputs.count("7")==1:
      print("YES")
      return
  
  print("NO")
  return


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

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

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

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

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

if A == 5:
    if B == 7:
        if C == 5:
            print('YES')
        else:
            print('NO')
    elif B == 5:
        if C == 7:
            print('YES')
        else:
            print('NO')
    else:
        print('NO')
elif A == 7:
    if B == 5:
        if C == 5:
            print('YES')
        else:
            print('NO')
    else:
        print('NO')
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=str(list(map(int,input().split())))
if a.count('7') ==1 and a.count('5') ==2:
  print('YES')
else:
  print('NO')
Buggy code:
val1=list(map(int,input().split()))

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

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

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