Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*- 
price, K = map(int, input().split())
 
kirai_data =input().split()
#print(set(data))
 
lst = list(range(price,10001))
for min in lst:
   
    shugo = set(kirai_data) & set(list(str(min))) 
    if  len(shugo) == 0 :                         
        print(min)
        break
    else:
        continue

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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*- 
price, K = map(int, input().split())
 
kirai_data =input().split()
#print(set(data))
 
lst = list(range(price,10001))
for min in lst:
   
    shugo = set(kirai_data) & set(list(str(min))) 
    if  len(shugo) == 0 :                         
        print(min)
        break
    else:
        continue

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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*- 
price, K = map(int, input().split())
 
kirai_data =input().split()
#print(set(data))
 
lst = list(range(price,10001))
for min in lst:
   
    shugo = set(kirai_data) & set(list(str(min))) 
    if  len(shugo) != 0 :                         
        continue
    else:
      #print(price)
      print(min)
      break

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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*- 


number, length = map(int, input().split())
lst = []
for n in range(number):
    s = input()
    #print(s)
    lst.append(s)
    #print(lst)

lst.sort()
moji = ""
for n in lst:
    moji += n
print(moji)


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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*- 

number, length = map(int, input().split())
lst = []
for n in range(number):
    input = input()
    lst.append(input)

lst.sort()
moji = ""
for n in lst:
    moji += n
print(moji)


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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
#入力した整数が５、７、５であるならばTrueを返す
# int,int,int -> True 
 
x,y,z = (int(i) for i in input().split())
if x == 7:
    if y == z and y == 5 :
        print("YES")
    else:
        print("NO")
elif y == 7:
    if x == z and x == 5:
        print("YES")
    else:
        print("NO")
elif z == 7:
    if x == y and x == 5:
        print("YES")
    else:
        print("NO")
    else:
        print("NO")

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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
#入力した整数が５、７、５であるならばTrueを返す
# int,int,int -> True 

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


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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
#入力した整数が５、７、５であるならばTrueを返す
# int,int,int -> True 
x,y,z = int(input())

def check7(x,y,z):
    if x == 7:
        if y == z and y == 5 :
            print("YES")
        else:
            print("NO")
    elif y == 7:
        if x == z and x == 5:
            print("YES")
        else:
          print("NO")
    elif z == 7:
        if x == y and x == 5:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")


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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
#入力した整数が５、７、５であるならばTrueを返す
# int,int,int -> True 

def check7(x,y,z):
    if x == 7:
        if y == z and y == 5 :
            print("YES")
        else:
            print("NO")
    elif y == 7:
        if x == z and x == 5:
            print("YES")
        else:
            print("NO")
    elif z == 7:
        if x == y and x == 5:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")

if __name__ == "__main__":
    check7()


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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
#入力した整数が５、７、５であるならばTrueを返す
# int,int,int -> True 

def check7(x,y,z):
    if x == 7:
        if y == z and y == 5 :
            print("YES")
        else:
            print("NO")
    elif y == 7:
        if x == z and x == 5:
            print("YES")
        else:
          print("NO")
    elif z == 7:
        if x == y and x == 5:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")

if __name__ == "__main__":
    check7()


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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
#入力した整数が５、７、５であるならばTrueを返す
# int,int,int -> True 

def check7(x,y,z):
    if x == 7:
        if y == z :
            print("YES")
        else:
            print("NO")
    elif y == 7:
        if x == z :
            print("YES")
        else:
          print("NO")
    elif z == 7:
        if x == y:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")

if __name__ == "__main__":
    check7()


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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Buggy python submission (verdict: Runtime Error):
#入力した整数が５、７、５であるならばTrueを返す
# int,int,int -> True 

def check7(x,y,z):
    if x == 7:
        if y == z :
            print("YES")
        else:
            print("NO")
    elif y == 7:
        if x == z :
            print("YES")
        else:
          print("NO")
    elif z == 7:
        if x == y:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")

if __name__ == __main__:
    check7()

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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")