Buggy python submission (verdict: Runtime Error):
a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
  if x==5:
      global 5_count
      5_count+=1
  elif x==7:
      global 7_count
      7_count+=1
check(a)
check(b)
check(c)
if 7_count==1 and 5_count==2:
  print("YES")
else:
  print("NO")


Fixed submission:
a,b,c=(int(x) for x in input().split())
nana_count=0
go_count=0
def check(x):
  if x==5:
      global go_count
      go_count+=1
  elif x==7:
      global nana_count
      nana_count+=1
check(a)
check(b)
check(c)
if nana_count==1 and go_count==2:
  print("YES")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
	if x==5:
		global 5_count
        5_count+=1
	elif x==7:
 	    global 7_count
		7_count+=1
check(a)
check(b)
check(c)
if 7_count=1 and 5_count=2:
  print("YES")
else:
  print("NO")


Fixed submission:
a,b,c=(int(x) for x in input().split())
nana_count=0
go_count=0
def check(x):
  if x==5:
      global go_count
      go_count+=1
  elif x==7:
      global nana_count
      nana_count+=1
check(a)
check(b)
check(c)
if nana_count==1 and go_count==2:
  print("YES")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
n, k = map(int, input().split())
dislikes = input().split()

payment = n
while True:
    tmp = str(payment)
    for t in tmp:
        if t in dislikes:
            break
    else:
        break
    payment += 1
print(payment)

Fixed submission:
import itertools

haiku = list(map(int, input().split()))
p = list(itertools.permutations(haiku, 3))
print("YES" if (5, 7, 5) in p else "NO")

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
# 整数の入力
a, b, c = map(int, input().split())
# 575判定式
if(a*b*c == 5*7*5 && a+b+c == 17):
  print("YES")
else:
  print("NO")

Fixed submission:
# -*- coding: utf-8 -*-
# 整数の入力
a, b, c = map(int, input().split())
# 575判定式
if(a*b*c == 175 and a+b+c == 17):
  print("YES")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
if sorted(a, b, c) == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Fixed submission:
a, b, c = map(int, input().split())
if sorted((a, b, c)) == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Buggy python submission (verdict: Runtime Error):
A = list(map(int, input().split()))
if A == [5,7,5]
    print('YES')
else:
    print('NO')

Fixed submission:
a, b, c = map(int, input().split())
if sorted((a, b, c)) == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Buggy python submission (verdict: Runtime Error):
a = list(map(int, input().split()))
s = [input() for i in range(a[0])]
newa= sorted(s)
moji =''
for x in newa:
    moji += x
print(moji)

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

Buggy python submission (verdict: Runtime Error):
a = list(map(int, input().split()))
s = [input() for i in range(a[0])]
newa= sorted(s)
print(a[0],a[1])
[print(i) for i in newa]




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